React patterns, techniques, tips and tricks
A compilation of React Patterns, techniques, tips and tricks. Gitbook format : https://vasanthk.gitbooks.io/react-bits Your contributions are heartily ♡ welcome. (✿◠‿◠) 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 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 Pur...