You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of using the context feature of react to pass through data to the timer rendering component, this could also be achieved using a function as child component style API.
This is a pattern also used by react-motion for example and what appeals to me personally is, that the data flow is a bit more explicit this way IMHO. (Of course there are a lot of differing opinions on this one, but in case you deem it useful ...)
The text was updated successfully, but these errors were encountered:
rmoorman
changed the title
FAAC maybe worth considering instead of context types
FaCC maybe worth considering instead of context types
Nov 11, 2017
Instead of using the context feature of react to pass through data to the timer rendering component, this could also be achieved using a function as child component style API.
Using the example given within the readme, this:
could become something like this:
This is a pattern also used by react-motion for example and what appeals to me personally is, that the data flow is a bit more explicit this way IMHO. (Of course there are a lot of differing opinions on this one, but in case you deem it useful ...)
The text was updated successfully, but these errors were encountered: