About this project
React Bits is an open, Markdown-based knowledge resource for React developers rather than an installable runtime library. Its main pattern section covers conditional JSX, asynchronous setState behavior, dependency injection, context wrappers, event handlers, Flux, one-way data flow, presentational versus container components, third-party integration, functional setState calls, decorators, Redux-based feature flags, component switching, list components, text formatting, fragments, and shared tracking logic.
The anti-pattern section documents practices such as storing props in initial state, using findDOMNode(), relying on mixins, calling setState() in componentWillMount(), mutating state, using array indexes as keys, and spreading arbitrary props onto DOM elements. Additional sections address composing and toggling UX variations, higher-order components, props proxying, wrapper and layout components, display-order changes, shouldComponentUpdate checks, PureComponent, reselect, style modules and style functions, reusable base/typography components, styling HOCs, pure-render checks, and synthetic events.
The content is published as a GitBook and hosted on GitHub, with a related-reading page and community-provided Chinese and Korean translations. Contributions are welcomed.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.