+ 1
How to store dynamic component in a variable using react js?
Dynamic component
4 ответов
+ 2
This code defines a dynamic variable as React component
https://code.sololearn.com/WV6Bk7NcH34m/?ref=app
+ 1
Mohammad Shahzar Every react component is a variable.
For example,
const Text = () => <p>Text</p>;
export default Text;
Variable, Text is a component.
0
Calviղ Thnx but it is not thai i want
I want to store component in variable
0
Calviղ Thnx