Hello React and TypeScript

Updated 3 years ago

Raine Revere (@raineorshine) started discussion #2

3 years ago · 0 comments


A stateful component should handle events triggered by its children. Ideally, stateful component wouldn't have props and would be able to compose its state on all its own, independent of any parent or ancestors. It should be detached from its parent in terms of rendering. It should only re-render when it has new state, not when it's parent re-renders. It could possible use the shouldComponentUpdate to prevent re-rendering by parent.

React (Edit this file)

"all on its own"

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