A React.js, React-three-fiber UI tutorial that allows you to Create shapes dynamically by using a Primitive placeholder.
code : https://github.com/ui-code-tv/r3f-dyn...
Intro (00:0:00)
Project setup and code walk through (00:1:45)
Setup primitive placeholder and setup shape lookup object (00:8:33)
Add button and click handler (00:18:55)
Tidy up positioning and add color (00:37:00)