Skip to content

Does Hooks exist? #10

Mar 8, 2021 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

You can use hooks. The only hook provided is useState, but you can of course build and use your own hooks.

It is not possible to use lifecycles on functional components.

The way I build the library, class components manage state and have lifecycles; functional components just render thinks. (Just like in the old days of react)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@yandeu
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by yandeu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants