How to extend a React component?

Posted by Jessica Taylor | Updated on

Want to extend a React component? In the ES6/JSX/React world, you can extend component behaviour and values in many ways. I’d recommend one of the following, considering that you use Material UI.

In this example, you have one component that extends Component from React but only has event methods. Then, you extend this component and render your own with the extended behaviour.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers