vasanthk /react-bits
✨ React patterns, techniques, tips and tricks ✨
★ 17,424⑂ 1,102👁 309⑃ 87● 33▤ 0
More from this author
+0
Daily
17,424
stars
1,102
forks
309
watchers
87
prs
33
issues
0
releases
README
React Bits A compilation of React Patterns, techniques, tips and tricks. Gitbook format: https://vasanthk.gitbooks.io/react-bits Github repo: https://github.com/vasanthk/react-bits Your contributions are heartily ♡ welcome. (✿◠‿◠) Translations by community: - 中文版 (Chinese): react-bits-cn - 한국어 (Korean): react-bits-ko - Design Patterns and Techniques - Conditional in JSX - Async Nature Of setState() - Dependency Injection - Context Wrapper - Event Handlers - Flux Pattern - One Way Data Flow - Presentational vs Container - Third Party Integration - Passing Function To setState() - Decorators - Feature Flags - Component Switch - Reaching Into A Component - List Components - Format Text via Component - React Fragments - Share Tracking Logic - Anti-Patterns - Introduction - Props In Initial State - findDOMNode() - Mixins - setState() in componentWillMount() - Mutating State - Using Indexes as Key - Spreading Props on DOM elements - Handling UX Variations - Introduction - Composing UX Variations - Toggle UI Elements - HOC for Feature Toggles - HOC props proxy - Wrapper Components - Display Order Variations - Perf Tips - Introduction - shouldComponentUpdate() check - Using Pure Components - Using reselect - Styling - Introduction - Stateless UI Components - Styles Module - Style Functions - NPM Modules - Base Component - Layout Component - Typography Component - HOC for Styling - Gotchas - Introduction - Pure render checks - Synthetic Events - Related Links
Top issues
#120Suggestion for class components3 comments · 2025-10-30#82What about using an object?2 comments · 2017-11-06#40React Loadable2 comments · 2017-03-30#73Linter1 comments · 2017-11-03#56Extend event handlers with an example of arrow function in class property1 comments · 2017-04-08#119Invalid block! https://reactbits.dev/ts/tailwind/text-animations/SplitText does not exist!0 comments · 2025-09-04#118server is down.0 comments · 2025-06-12#117Another Approach for conditional Rendering0 comments · 2024-08-16