Home > Software design >  Reactjs, re-render same components, but different return data
Reactjs, re-render same components, but different return data

Time:02-11

A little hard to explain, but please bear with me.

I have this function Component. The function Component code is almost the same, but how can i simplify my function MyComponent with the return value are different to each pages?

Below is my code and to better understand here is the complete sandbox code Edit reactjs-re-render-same-components-but-different-return-data

  • Related