React Function Components
April 27, 2020
Requirements:
-
Create a React application and run it to get default page
-
Remove all extant files
-
Create a new App.js starter file
-
Add a new function component that renders an input field and a button - call this
Input
-
Add a new function component that renders a table - call this
Table
-
Import and add both new function components as child components to the App
-
On button onClick, push
Input
input field value prop toTable
component
Advanced 1:
- Add bootstrap Material UI theming from -(bootstrap-material-design)[https://fezvrasta.github.io/bootstrap-material-design/]
Tech:
- nodejs
- npm
- npx
- react (create-react-app)