Sorry for the late reply. So the way this works is if you are aware that the jsx we write in React is not valid HTML but there is a plugin that transpiles those calls into React.createElement call. The same way when you write <mesh /> or <boxBufferGeometry> or any of the components in the three.js catalogreact-three-fiber will go and convert those calls to three js calls. For starters check out this and this
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Creating a basic scene:
First code sample uses mesh, boxBufferGeometry, and meshNormalMaterial, but only imports react. If that's accurate - how does that work?
Sorry for the late reply. So the way this works is if you are aware that the
jsxwe write in React is not valid HTML but there is a plugin that transpiles those calls intoReact.createElementcall. The same way when you write<mesh />or<boxBufferGeometry>or any of the components in the three.js catalogreact-three-fiberwill go and convert those calls to three js calls. For starters check out this and this