Create-react-app is from Facebook, which allows us to quickly build a react development environment without configuration.Create-react-app automatically created projects are based on Webpack + ES6The following commands are executed:NPM Install create-react-app-g // Global Installation Create-
The previous article achieved the "delete" function, then we continue to add the next function-"change"The functionality of this modification is achieved by double-clicking each sub-optionStep one: Follow the rules to add a status statementStep two: The action in the contract what we want to do, and the other elements (text) to reducer (here Eidttodo Modify the outer edittodo)Step three: Reducer Central to update our store (believe it after comments about ... Grammar, Map loops and so on no long
problems encountered
At present, the template is self-defined, the style is not good control in the component design, you can put the page data display place, split parent-child component nested structure, for example, the product data display list, the group of the outer container as a parent component, which is the data display of the rendering template, as a sub-component
Do data interaction
1. Implementing the separation of parent-child components---Parent component re
| flex-end | center | baseline | Stretch ( Telescopic items occupy the telescopic container in the cross-axis direction, if the intersection axis is vertical, you can see the effect only if the height is not set.# # # #在React using Flexbox in nativeRN currently supports the following 6 properties of Flexbox:1.alignItemsused to define the alignment of the scaling item on the intersection axis, with the following syntax:Alignitems:flex-start (default v
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.