Skip to content

Is it possible to encapsulate Hot Behavior as a reusable function? #2370

Answered by ryansolid
ryansolid asked this question in Q&A
Discussion options

You must be logged in to vote

Nvm.. I found a new solution.. where I use a factory to create the HOC, and the accept handler.. and keep the hot code in the component. Definitely less clean but probably more expected.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ryansolid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant