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.jsto do this - Rendering Multiple Components
- Import
- Check the
console.logand fix any warning you might have. - In
App.jscreate a<Products />component to extract the responsibility into a separate component. - Pass the array of products as props into the
Productscomponent - Move the
<Products />component into aProducts.jsand call it fromApp.js - Create a
<Product />component insideProducts.jsfile 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.cssandProducts.css