React in Patterns In Chinese
📖 is a free open source book about design patterns and techniques developed by React.
book
- online
- Mobi
- ePub
directory
basis
- Component communication
- The input
- The output
- The event processing
- combination
- Use the React Children API
- Pass child as prop
- High order component
- Pass functions as children and render prop
- Controlled input and uncontrolled input
- Presentation components and container components
The data flow
- Unidirectional data flow
- Flux
- The Flux architecture and its key features
- Implementing the Flux architecture
- Redux
- Redux architecture and its key features
- Simple counter application using Redux
other
- Dependency injection
- Use React Context (prior to 16.3)
- Use React Context (16.3 and later)
- Using module system
- Component style
- Classic CSS class
- Inline style
- CSS module
- Styled-components
- Integrating third-party libraries
The source code
All the code used in the book is here.
Other resources
- React Design Principles
- Airbnb React/JSX Style Guide
- React mode used by Planning Center Online
- The React mode by Michael Chan
- React patterns, techniques, tips, and tricks
Build a book
yarn install && yarn build
To generate ebooks, you need to install themcalibreAnd then executeln -s /Applications/calibre.app/Contents/MacOS/ebook-convert /usr/local/bin/
。