Giter VIP home page Giter VIP logo

react-v8-introduction's Introduction

Complete Intro to React V8

Complete Intro to React V8, Frontend Masters

Lesson 1 : Pure React & createElement

- Introduction.
- Links

Lesson 2: Pure React Q&A

- Build React basic project.
- Import the react library.
- On Dev tools console you can type in order to check the library.
        - React
        -ReactDom
- Show the basic way to create components in react.

Lesson 3: Pure React Q&A

QA:
    - Why createRoot.
    - Why use react?
        - Library to render DOM.
        - Handle state of the web app.

Lesson 4: Pure React Components

- Create Pet component.
- React have a data flow from parent to childs. 
    this makes the flow of data more easy to read and follow.
- Pass props to child component.

Lesson 5: JSX

- Using JSX to render components.
- install npm.
    npm init -y
- Using and configure Prettier.
    npm i -D [email protected]

Lesson 6: Set up Eslint and Gitignore

- Set up Eslint and Gitignore
- npm i -d [email protected] [email protected]

Lesson 6: Set up Vite and react

- Install vite
    npm i -D [email protected] @vitejs/[email protected] --legacy-peer-deps.
- Install react 18.2.0    
    npm install [email protected] [email protected]

Lesson 7: React Core Concepts.

Lesson 10

- Hooks in react
    https://react-v8.holt.courses/lessons/core-react-concepts/hooks
- How react render.
- They have to be called in the same order, not inside ifs or conditionals.
- Let's add the ESLint rule. 
    npm i -D [email protected]

Lesson 14: Effects and customs Hooks

- useEffect 
    useEffect allows you to say do a render of this component first so the user can see something then as soon as the render is done, then do something.
 - use custom Hooks.   
    useBreedList

Lesson 16: Handling user Input and COMPONENT COMPOSITION

-  Handling user input.
-  Make subcomponts.
    - Recommendation: Don't decompose too much.

Lesson 16: Dev Tools

- NODE_ENV=development.
- Strict Mode
- Dev Tools
    React has wonderful dev tools that the core team maintains.

Lesson 17: React Router

- React Router is by far the most popular client side router in the React community. It is mature, being used by big companies, and battle tested at large scales.
- npm i [email protected]

- https://react-v8.holt.courses/lessons/react-capabilities/react-router

Lesson 22: React Query

- Right now react query is a must !
- The idea behind React is that you want to cache most of what you fetch from a database. 
- npm install @tanstack/[email protected]
- how to fetch with react query.

Lesson 24 : Refactor

- Refactor useBreedList to see react query simplicity.
- If it is possible, avoid useEffect.

Lesson 25 : Uncontrolled Forms

- We do have a controlled input on animal to properly have it determine the useBreedList animal. But we're not using the controlled input to submit the form, we're just using the form event anyway

Lesson 26 : Class Components

- Class components have lifecycle methods. These for the most part are what useEffect does for function components. They're for doing things like making API calls, starting and ending

Lesson 28 : Error Boundaries

- Frequently there's errors with APIs with malformatted or otherwise weird data.
- This is something you can't do with hooks so if you needed this sort of functionality you'd have to use a class component.

Lesson 29 : PORTALS AND REFS

- Another nice feature React is something called a Portal. You can think of the portal as a separate mount point (the actual DOM node which your app is put into) for your React app. 
- Refs are like instance variables for function components. Whereas on a class you'd say this.myVar to refer to an instance variable, with function components you can use refs. 
    They're containers of state that live outside a function's closure state which means anytime I refer to elRef
- Implement modal with portals..

Lesson 31 : Context

-  Context is like state, but instead of being confined to a component, it's global to your application. It's application-level state. This is dangerous. Avoid using context until you have to use it.
Resources

-- Course notes https://react-v8.holt.courses/lessons/welcome/intro -- https://react-v8.holt.courses/ -- Course repo https://github.com/btholt/complete-intro-to-react-v8 -- Course Github https://github.com/btholt/citr-v8-project/tree/main/01-no-frills-react

react-v8-introduction's People

Contributors

danielbc09 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.