React
Table of Contents
Overview
https://legacy.reactjs.org/tutorial/tutorial.html#what-is-react
Documentation
Features
- Alternatives: Angular, Vue, Svelte
- Components
- https://react.dev/reference/react/Component
- Independence
- Reusability
- Speed
File/Folder structure
- public
- Contains static assets including index.html (page template)
- index.html
- title
- fonts
- css
- favicon
- id=“root” - our entire app
- We don’t create html pages with React.
- React lets us work with Single page application.
- The whole application exists inside of one single html file - which is
<project-root>/public/index.html
- In this file, there is a single div with the id=root:
<div id="root">
- React will grab all the code we write with javascript in
src
and puts everything inside this<div>
- Contains static assets including index.html (page template)
- src
- In simplest form it’s the brain of our app. This is where we will do all of our work. src/index.js is the JavaScript entry point.