Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-in-patterns

> 前端框架
Open source

A free book that talks about design patterns/techniques used while developing with React.

13.6K stars0 likes1 views
WebsiteGitHub

About

A free book that talks about design patterns/techniques used while developing with React.

React in patterns

:books: A free book that talks about design patterns/techniques used while developing with React.

Book

  • Web
  • PDF
  • Mobi
  • ePub

Translations

  • 简体中文

Content

  • In brief

Foundation

  • Communication
    • Input
    • Output
  • Event handlers
  • Composition
    • Using React's children API
    • Passing a child as a prop
    • Higher-order component
    • Function as a children, render prop
  • Controlled and uncontrolled inputs
  • Presentational and container components

Data flow

  • One direction data flow
  • Flux
    • Flux architecture and its main characteristics
    • Implementing a Flux architecture
  • Redux
    • Redux architecture and its main characteristics
    • Simple counter app using Redux

MISC

  • Dependency injection
    • Using React's context (prior to v. 16.3)
    • Using React's context (v. 16.3 and above)
    • Using the module system
  • Styling
    • The good old CSS class
    • Inline styling
    • CSS modules
    • Styled-components
  • Integration of third-party libraries
  • React and separation of concerns

Source code

The code samples used in the book are available here.

Other resources

  • React Design principles
  • Airbnb React/JSX Style Guide
  • React patterns at Planning Center Online
  • React patterns by Michael Chan
  • React patterns, techniques, tips and tricks

Building the book

yarn install && yarn build

To make the ebook generating possible install calibre and ln -s /Applications/calibre.app/Contents/MacOS/ebook-convert /usr/local/bin/.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptdata-flowdependencyinjectionpatterns

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架