babylon-react-provider
v0.0.7
Published
A collection of React hooks and utilities to implement mixed Babylon/React components. Designed to be easily compatible with **React UI Components Libraries**.
Downloads
206
Readme
Babylon React Provider
A collection of React hooks and utilities to implement mixed Babylon/React components. Designed to be easily compatible with React UI Components Libraries.
:beginner: Documentation
:tv: Online demos
- Full list of available demos
- Featurings
:dagger: Features
- Create mixed Babylon / React components
- Custom hooks to build babylon application
- useGLTF
- useMesh
- useMaterial
- ...more
- Mounting, unmounting and disposing ressources
- Custom hooks to build babylon application
- Multiple instances / contextes
- Hot Module Reloading
<StrictMode>
<Suspense>
- React Testing Library
- React router
:sparkles: Usage
function Demo() {
useGLF('')
const meshes = useMeshes()
return <ul>
{ meshes.map(mesh => (<li>{mesh.name}</li>)) }
</ul>
}
:construction: Install
npm install babylon-react-provider