Day 03 - 12-20-18 - 4 hrs, 24 mins
- Explored the create-react-app application further, to better understand default file/folder structure and data flow when creating a react project with create-react-app. Summary: component classes defined in various .js files. Components define and return html elements, styling, and/or import more components to be displayed as part of component. Return what they want displayed from render(). index.js class imports react, react-dom, and all components used, then renders components to index.html elements via ReactDom.render(), which creates a component and calls its render() method. App.js class built as default component class with sample import statement. Default index.css, App.css also generated.
- Read the second chapter of React Quickly, built a react project and played around with creating react components and applying them to the DOM, as well as applying styles to them, as rendering components of different types through conditional checks in the render() statement prior to returning the components for DOM application. Very basic. Just working with text elements now, and only html attributes, no css yet.