+ 1

How to store dynamic component in a variable using react js?

Dynamic component

25th Jul 2020, 9:30 AM
Mohammad Shahzar
Mohammad Shahzar - avatar
4 Respuestas
+ 2
This code defines a dynamic variable as React component https://code.sololearn.com/WV6Bk7NcH34m/?ref=app
25th Jul 2020, 4:46 PM
Calviղ
Calviղ - avatar
+ 1
Mohammad Shahzar Every react component is a variable. For example, const Text = () => <p>Text</p>; export default Text; Variable, Text is a component.
26th Jul 2020, 3:43 PM
Calviղ
Calviղ - avatar
0
Calviղ Thnx but it is not thai i want I want to store component in variable
26th Jul 2020, 2:29 PM
Mohammad Shahzar
Mohammad Shahzar - avatar
0
Calviղ Thnx
26th Jul 2020, 7:01 PM
Mohammad Shahzar
Mohammad Shahzar - avatar