dynamic react components wont render
I'm trying to dynamically render a collection of react components. and I can't just pass the components in an array. so I only pass the name of the components and them I try to convert that name to jsx.
just like parsing JSX to output function calls
react.createElement(type, args, children). we could get to pass strings and get the function name inside of that cope.
ERR: Warning: The tag <Component> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.8 Replies
i really dont understand the code
just doing <Component/> eould work
oh! wait
why are you mapping an array with a string inside
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
eh no
i just checked the file
yes
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
i see