React Bits

Updated 7 months ago

Eugene Safronov (@sejoker) started discussion #4

3 years ago · 0 comments


One of the advantages of using functions includes a very clear separation of view and logic (see the first point), because there is no room for any logic. The absence of the this keyword and thus lacking the ability to add functions that do internal state handling and logic further enforces this separation.

Stateless Functions (Edit this file)

The coverage of the advantages will be not full without mentioning the limitations. An important caveat of functional components is lack of refs support. It may be important to the library authors who can't control how there components will be used.

No description provided.

No comments on this discussion.

to join this conversation on GitBook. Already have an account? Sign in to comment

You’re not receiving notifications from this thread.

1 participant