Sharing Logic Between Components in Different React Renderers
Sharing Logic Between Components in Different React Renderers
The bottom line is that there are more targets for React and it may still be necessary to reuse logic across multiple renderers for different platforms. Fortunately, building a custom hook provides an easier path to share component logic than the original render props technique did.