ecsia-monorepo / react/src / WorldProvider
Function: WorldProvider()
ts
function WorldProvider(__namedParameters): ReactElement;Defined in: react/src/world.ts:63
Provides an existing world to the hooks below. The provider never creates, ticks, or disposes a world — the simulation loop (a driver, r3f's useFrame, or a manual scheduler.update(dt)) is owned elsewhere, and the world MUST tick for hooks to see mutations (see the package README).
Parameters
| Parameter | Type |
|---|---|
__namedParameters | WorldProviderProps |
Returns
ReactElement