Take the problem I suffer in the real world down. And strongly hope who look into this repo to give me some advices.
- User-defined Component Must Be capitalized
- Component Return Only One Child
- Don't Modify Props
- Don't Modify State Directly
- Don't using indexes for Keys if the items can reorder
- If something can be derived from eithor props or state, it probably shouldn't be in the state.
- props.children Use Case
- To Export More React Component
- Using PureComponent
- Can I load data in the constructor
- DOM is not rendered before componentDidUpdate
- bind function in Component constructor
- React computed property
- White space between inline element
- Controlled input setState to null
- Don't return prop.children conditional in the render function
- JSX props shorthand
- Don't mix up Controlled and Uncontrolled
- How to Get cross-level ref
- Input fires unnecessary using Chinese IME
Let's see what happened into Fiber.