React Component API

ReactJS component is a top-level API. We will discuss three methods: setState(), forceUpdate and ReactDOM.findDOMNode().

Code :