Check out the react-reconciler.
Check out this video.
Check out these three articles: part 1, part 2, part 3.
Every platform renderer, be it dom, react native, etc has to have its own configuration called hostConfig along with the
react-reconciler
.Renderers are required to implement all the necessary platform specfic functions inside the hostConfig.
The
react-reconciler
module inside the renderer will call the platform specific functions via the supplied hostConfig to perform dom changes or view updates.
Here is a workable implementation of custom renderer.