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
var React3 = require('react-three-renderer')
React3 is a regular React Component that places a canvas on the page.
When React3 is mounted, it initializes a THREE.js webgl renderer.
Afterwards, it repeatedly requests animation frames from the browser.
Every frame it re-renders the whole scene.
The renderer properties are configured through a <react3> component.
All of the attributes are passed to <react3>.
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