├── 01_Welcome_Welcome_Welcome ├── 3_Watch_Before_You_Start │ └── README.md ├── 4_Read_Before_You_Start │ └── README.md ├── 1_Course_Roadmap_and_Projects │ ├── README.md │ └── .DS_Store ├── 5_Downloading_Course_Material │ └── README.md └── 2_Building_Our_First_React_App │ ├── src │ ├── index.js │ └── App.js │ ├── package.json │ └── public │ └── index.html └── README.md /01_Welcome_Welcome_Welcome/3_Watch_Before_You_Start/README.md: -------------------------------------------------------------------------------- 1 | No code in this section. -------------------------------------------------------------------------------- /01_Welcome_Welcome_Welcome/4_Read_Before_You_Start/README.md: -------------------------------------------------------------------------------- 1 | No code in this section. -------------------------------------------------------------------------------- /01_Welcome_Welcome_Welcome/1_Course_Roadmap_and_Projects/README.md: -------------------------------------------------------------------------------- 1 | No code in this section. -------------------------------------------------------------------------------- /01_Welcome_Welcome_Welcome/5_Downloading_Course_Material/README.md: -------------------------------------------------------------------------------- 1 | No code in this section. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # The-Ultimate-React-Course-2024 2 | A practice-heavy approach to master React by building polished apps, backed up by diagrams, theory, and looks under the hood of React. 3 | -------------------------------------------------------------------------------- /01_Welcome_Welcome_Welcome/1_Course_Roadmap_and_Projects/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/somekindofwallflower/The-Ultimate-React-Course-2024/main/01_Welcome_Welcome_Welcome/1_Course_Roadmap_and_Projects/.DS_Store -------------------------------------------------------------------------------- /01_Welcome_Welcome_Welcome/2_Building_Our_First_React_App/src/index.js: -------------------------------------------------------------------------------- 1 | import { StrictMode } from "react"; 2 | import { createRoot } from "react-dom/client"; 3 | 4 | import App from "./App"; 5 | 6 | const rootElement = document.getElementById("root"); 7 | const root = createRoot(rootElement); 8 | 9 | root.render( 10 | 11 | 12 | 13 | ); 14 | -------------------------------------------------------------------------------- /01_Welcome_Welcome_Welcome/2_Building_Our_First_React_App/src/App.js: -------------------------------------------------------------------------------- 1 | import { useEffect, useState } from "react"; 2 | 3 | export default function App() { 4 | const [advice, setAdvice] = useState(""); 5 | const [count, setCount] = useState(0); 6 | 7 | async function getAdvice() { 8 | const res = await fetch("https://api.adviceslip.com/advice") 9 | const data = await res.json(); 10 | setAdvice(data.slip.advice); 11 | setCount((c) => c + 1) 12 | } 13 | 14 | useEffect(function() { 15 | getAdvice(); 16 | }, []) 17 | return ( 18 |
19 |

{advice}

20 | 21 | 22 |
23 | ); 24 | } 25 | 26 | 27 | function Message(props) { 28 | return ( 29 |

30 | You have read {props.count} pieces of advice 31 |

32 | ) 33 | } -------------------------------------------------------------------------------- /01_Welcome_Welcome_Welcome/2_Building_Our_First_React_App/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react", 3 | "version": "1.0.0", 4 | "description": "React example starter project", 5 | "keywords": [ 6 | "react", 7 | "starter" 8 | ], 9 | "main": "src/index.js", 10 | "dependencies": { 11 | "loader-utils": "3.2.1", 12 | "react": "18.2.0", 13 | "react-dom": "18.2.0", 14 | "react-scripts": "5.0.1" 15 | }, 16 | "devDependencies": { 17 | "@babel/runtime": "7.13.8", 18 | "typescript": "4.1.3" 19 | }, 20 | "scripts": { 21 | "start": "react-scripts start", 22 | "build": "react-scripts build", 23 | "test": "react-scripts test --env=jsdom", 24 | "eject": "react-scripts eject" 25 | }, 26 | "browserslist": [ 27 | ">0.2%", 28 | "not dead", 29 | "not ie <= 11", 30 | "not op_mini all" 31 | ] 32 | } -------------------------------------------------------------------------------- /01_Welcome_Welcome_Welcome/2_Building_Our_First_React_App/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 14 | 23 | React App 24 | 25 | 26 | 27 | 30 |
31 | 41 | 42 | 43 | --------------------------------------------------------------------------------