#Render as element kind

3 messages · Page 1 of 1 (latest)

runic meteor
#

Hi, anyone know if you can render an element with a particular tag, from props for example. Maybe like react you do createElement(<tag>,...). There's Dynamic but that's no SSR right?

Just to give a simple example, say you have a very nested structure layout so want some Flex component just like

const Flex = <T extends *someTagName*> (props:{tag:T}) => <*tag* style={{...*all the flex stuff*}}>{...}</*tag*>

There is no Solid without JSX if I remember correctly?

runic meteor
night merlin
#

Dynamic has a server implementation, it should work