Archives

Functional component: Definition

Definition A functional component is a JavaScript function that accepts a “props” object argument with data and returns a React element.   Usage A functional component has limited features and is mostly used for: Rendering purposes: It simply renders a... View Article
Eric Njanga Mar 06, 2018

Interesting facts about a component state

Each time this.setState is called, an update to the component is scheduled, this causes React to merge in the passed state update and rerender the component along with its descendants
Eric Njanga Mar 03, 2018
© 2018 Copyright Eric Njanga | |