Does Hooks exist? #10
-
Is there a smaller hook or life cycle is exist? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
oh i founded |
Beta Was this translation helpful? Give feedback.
-
You can use hooks. The only hook provided is It is not possible to use lifecycles on functional components. The way I build the library, |
Beta Was this translation helpful? Give feedback.
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)