9 Matching Annotations
  1. Nov 2019
    1. Injector components should never be self-closing, and they should never wrap multiple children. We can fix this at code-time and not wait for the errors at runtime.
    2. React Native has also used this pattern in TouchableWithoutFeedback
    3. we use a LOT of injector components to abstract out logic and nicely separate concerns like style, animation, and interactions from our layout components.
    4. An injector component takes props, optionally computes new ones, then injects them into its child via React.cloneElement(). Crucially, it also does not add any new components to the DOM.
    1. Aligning closely with the <Injector_ > naming convention, Null Components are denoted with a prefix and postfix _ (e.g. <_NullComponent_ />).