Code for Kata 1 is available in the app1 folder.
The idea here is to get an introduction into React applications and learn the basic concepts.
- Learn basics of React
- How to create React components
- How to render multiple components
- How to import components
- Learn about
props
Write the JavaScript code to:
- Show a list of Redgate products in
App.js
.- Import
.\data.js
to do this - Rendering Multiple Components
- Import
- Check the
console.log
and fix any warning you might have. - In
App.js
create a<Products />
component to extract the responsibility into a separate component. - Pass the array of products as props into the
Products
component - Move the
<Products />
component into aProducts.js
and call it fromApp.js
- Create a
<Product />
component insideProducts.js
file and use it in the<Products />
component. - Some of the products are free others are new. Be sure to show this information in the product list.
- Add some styles to your app, add your css classes to
App.css
andProducts.css