React a second read
Claim
- Smaller learning curve!!
- work with a variety of backends
Both are important to me
Both are important to me
Latest version at this time: V 22
Latest version at this time: V 22
Some questions to after
- What is React?
- How do components work?
- Why do we need JSX?
- What distinguishes props from state?
- What problem does the key prop solve?
- How do controlled vs. uncontrolled inputs differ?
- What happens inside useEffect?
- When would you reach for useMemo / useCallback?
- What is context for?
- How does reconciliation work?
- What?s new in React 18 fundamentals?
- How does Suspense help with data-fetching?
- Explain lifting state up.
- How do refs differ from state?
- Why/when would you split a component?
- What is React.StrictMode?
- Why does React warn about side-effects in render?
- How does event handling differ in React?
- Can you call hooks conditionally?
- What?s the biggest mindset shift for newcomers?
npm create vite@5.1.0 my-react-app -- --template react
- Explanation
- ................
- npm create ? one-shot scaffolding command (alias of npm init) that downloads a generator package, runs it, then discards it.
- vite@5.1.0 ? requests version 5.1.0 of the generator package create-vite (npm auto-adds the create- prefix).
- my-react-app ? name (and path) of the folder to generate; created inside your current working directory.
- -- ? tells npm to stop parsing flags; everything after this is passed straight to the generator.
- --template react ? instructs create-vite to use its React JavaScript starter template.