简体   繁体   中英

How to correctly customize third party react components

I am beginner in React, using the components from http://www.material-ui.com/ Through npm.

I need to make considerable changes to the functionality of some of these third party components, but am not sure how to go about it in a way which will:

  1. support future updates to material-ui.
  2. Will allow me to create new props and states.

Well, if you have to make "considerable changes", I think the best thing you can do is take the code from their github and implement them in your own way.

Otherwise you are going to spend a lot of time trying to make them work the way you want (at least that's what happened to me!).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM