Answer the question
In order to leave comments, you need to log in
How to create the same components with different content?
Let's say I use a class approach to create several button
on a page. It is necessary that all these buttons have different text. That is, if I created a Button.js component module and exported it, then I import it into App.js and do it there as it should? Write strings to different variables that will be the text of buttons and using template strings and display this text in JSX?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question