solidJS equivalent of react's cloneElement
I'm trying to convert a react component that uses cloneElement to a solidJS component. I've briefly glanced at some of the messages on discord concerning cloneElement and I haven't seen anything definitive. lxsmnsyc mentioned using solid-headless.
Original react code:
This is as far as I got with my solidJS conversion:
This is what chatGPT recommended:
Original react code:
This is as far as I got with my solidJS conversion:
This is what chatGPT recommended:
