DougHamil / threeagent

ClojureScript library for building Three.js apps in a reagent-like fashion
MIT License
134 stars 10 forks source link

Threeagent clashes with reagent #41

Closed tytrdev closed 2 years ago

tytrdev commented 2 years ago

If you attempt to render a Threeagent component as a child of a reagent component, an error is thrown. It seems like reagent attempts to turn the threeagent primitive into an html element (e.g., :box => <box />). This makes sense, so I'm wondering if there's a good way to integrate threeagent with reagent.

I thought about having reagent render the parent container/canvas, and then having threeagent manually mount/render to the canvas. I'd like to avoid that if there's a cleaner option.

tytrdev commented 2 years ago

I'm dumb and should have read the previous issue more carefully. Sorry for the clutter <3