- Javascript framework
- Used as View in Model-View-Controller
- Library for creating UI
- https://www.youtube.com/watch?v=JPT3bFIwJYA
- https://www.youtube.com/watch?v=dGcsHMXbSOA
- nodeJS, npm
- Node_modules - all the packages locally
- public
- Src
- Package-lock-hold every version and package.json - holds scripts,
npm start
Open up live server
Styling
- File that holds all the html, logic, styling
- Self-contained piece of code
- Import react
- Function
- Export default app
- Export file
- return()- jsx code (kinda like html code)
- Logic code - before return
- Javascript braces in HTML code
- Put normal react structure
- Import in app.js
- Render in app.js like html element
- Mounts react app
- Reactdom.render app.js, index.html
- No html
- Only one div, root
- Styling
- Classname = in file.js code
- Use it for components
- Parameter in function