9 Matching Annotations
- Nov 2019
-
docs.silverstripe.org docs.silverstripe.org
-
Instead of overriding a service with your own implementation, you enhance an existing service with your own concerns. This pattern is known as middleware.
-
-
gist.github.com gist.github.com
-
-
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.
-
React Native has also used this pattern in TouchableWithoutFeedback
-
we use a LOT of injector components to abstract out logic and nicely separate concerns like style, animation, and interactions from our layout components.
-
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.
-
-
gist.github.com gist.github.com
-
Aligning closely with the <Injector_ > naming convention, Null Components are denoted with a prefix and postfix _ (e.g. <_NullComponent_ />).
-