This repository has been archived by the owner on Jul 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 155
Entry Point
Firtina Ozbalikci edited this page Oct 29, 2015
·
25 revisions
Wiki ▸ Entry Point
import React3 from 'react-three-renderer';
React3 is a regular React Component that places a canvas on the page.
When React3 is mounted, an instance of React3Renderer is used to render a <react3> internal component into the canvas.
The react3 internal component repeatedly requests animation frames from the browser.
Every frame it re-renders the whole scene.
The attributes are passed on to the react3 internal component so that it can configure the renderer.
any
The style properties to be passed onto the canvas.
Similar to ReactDOM.findDOMNode.
Finds a THREE.js object from a mounted component.
You are encouraged to use refs instead.
Advanced usage. Used to dispatch events. Undocumented for now.
Home | Usage | API Reference | Examples