在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:ironhack-labs/lab-thinking-in-react开源软件地址:https://github.com/ironhack-labs/lab-thinking-in-react开源编程语言:HTML 44.4%开源软件介绍:LAB | Thinking in ReactIntroductionBy now you probably know that in React everything is a component. A React app is built out of components, usually a lot of them. When used, components are usually nested inside of other components. To refresh our memory, a component is a reusable piece of code, which defines how certain features should look and behave in the UI. Now one more time, we will be thinking and acting in that direction. Maybe in the past days we didn't see how important is to plan our apps prior to building them. In this exercise, we will emphasize this approach. We’ll walk you through the thinking process of building an app displaying a searchable table of products. Setup
Submission
Getting StartedClean the // src/App.js
import "./App.css";
function App() {
return <div className="App"></div>;
}
export default App; InstructionsIteration 0 | IntroductionIn the Each product object has the following fields: {
"category": "Sporting Goods",
"price": "$49.99",
"inStock": true,
"name": "Football"
} You will be dealing with multiple components that depend on each other. To properly reflect the changes in all the components, we'll store the state in the closest common parent component (remember lift the state up). You will be dealing with multiple components that depend on each other. To ensure that components can interact with each other, we'll store the state in the closest common parent component (remember lifting the state up). And remember, this is just an exercise and a part of the learning process. No one expects you to do it perfectly. Think it through, ask questions, be curious and explore all possibilities. Let's do this! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论