React/React Udemy Lecture
-
#3 Building with Reusable ComponentsReact/React Udemy Lecture 2022. 12. 9. 12:58
Props System Parent Component => [props] => Child Component - Pass data from a parent to a child - Allows a parent to configure each child differently - One-way flow of data. A child can't push props back up. - Like 25% of understanding React Example) Parent Component : function App(){ return } => Props Object : {color : "red"} => Child Component : function Child(props){ return props.color } 29...
-
Creating a React App #9 What is create react appReact/React Udemy Lecture 2022. 12. 9. 05:45
Generating a Project npx create-react-app Go Into the Project cd Run npm start What are we running in our terminal? Files in my Project [index.js , App.js , reportWebVitals.js] => Create React App Dev Server - Babel : Tool to true JSX into normal JS code => - Webpack : Tool to merge all project into a single file => - bundle.js Inside the folder - index.js : First file that gets executed when ou..