react/packages/react-reconciler
Simen Bekkhus aa85b0fd5f Upgrade to Jest 23 (#12894)
* Upgrade to Jest 23 beta

* prefer `.toHaveBeenCalledTimes`

* 23 stable
2018-05-28 23:03:15 +01:00
..
npm Expose persistent reconciler to custom renderers (#12156) 2018-02-05 16:56:21 +00:00
src Upgrade to Jest 23 (#12894) 2018-05-28 23:03:15 +01:00
README.md Fix react native example links in README of 'react-reconciler' (#12871) 2018-05-20 12:01:00 +01:00
index.js Resolve host configs at build time (#12792) 2018-05-19 11:29:11 +01:00
inline-typed.js Resolve host configs at build time (#12792) 2018-05-19 11:29:11 +01:00
inline.art.js Resolve host configs at build time (#12792) 2018-05-19 11:29:11 +01:00
inline.dom.js Resolve host configs at build time (#12792) 2018-05-19 11:29:11 +01:00
inline.fabric.js Resolve host configs at build time (#12792) 2018-05-19 11:29:11 +01:00
inline.native.js Resolve host configs at build time (#12792) 2018-05-19 11:29:11 +01:00
inline.test.js Resolve host configs at build time (#12792) 2018-05-19 11:29:11 +01:00
package.json Updating package versions for release 16.4.0 2018-05-23 17:30:33 -07:00
persistent.js Resolve host configs at build time (#12792) 2018-05-19 11:29:11 +01:00
reflection.js Move ReactFiberTreeReflection to react-reconciler/reflection (#11683) 2017-11-28 16:57:22 +00:00

README.md

react-reconciler

This is an experimental package for creating custom React renderers.

Its API is not as stable as that of React, React Native, or React DOM, and does not follow the common versioning scheme.

Use it at your own risk.

API

var Reconciler = require('react-reconciler');

var ReconcilerConfig = {
  // You'll need to implement some methods here.
  // See below for more information and examples.
};

var MyRenderer = Reconciler(ReconcilerConfig);

var RendererPublicAPI = {
  render(element, container, callback) {
    // Call MyRenderer.updateContainer() to schedule changes on the roots.
    // See ReactDOM, React Native, or React ART for practical examples.
  }
};

module.exports = RendererPublicAPI;

Practical Examples

If these links break please file an issue and well fix them. They intentionally link to the latest versions since the API is still evolving.

This third-party tutorial is relatively up-to-date and may be helpful.