➜ labs git:(main) npm create vite@latest
Need to install the following packages:
create-vite@4.4.1
Ok to proceed? (y)
✔ Project name: … pokemon-app
✔ Select a framework: › React
✔ Select a variant: › JavaScript
Scaffolding project in /Users/paulb/code/reading-notes/301/labs/pokemon-app...
Done. Now run:
cd pokemon-app
npm install
npm run dev
it is a modular and reusable building block in software development that encapsulates specific functionality.
- modularity,
- reusability,
- encapsulation,
- well-defined interfaces.
- code reusability,
- easier maintenance,
- faster development,
- improved scalability.
What is Props and How to Use it in React
properties
they’re used as means of moving data around
parent -> child -> grandchild —-»> they are defined by the parent, and ready only for every subsequent generation