React is also the LLVM for creating declarative UI frameworks

“The LLVM Project is a collection of modular and reusable compiler and toolchain technologies”. LLVM makes it easy to create programming languages.

When we come across React for the first time It is introduced as “A JavaScript library for building user interfaces”. After you deep dive into the internals, React can also be called as the LLVM for creating declarative UI frameworks. It makes it easy to create your own declarative UI framework.

If you ask why do you want to build a declarative UI, it is because it is easier to write, read, manage and debug or hardly debug declarative code. Manually managing updates to UI is cumbersome and error prone and tools like React do a better job at that.

React initially started out for web. Pretty soon it was evident the concepts can be applied to more than web and then came React Native with support for iOS and Android. We can use the same component style declarative way to build UI for all these different platforms.

There are 3 fundamental blocks in React.

  1. React Component API: provides component API and lifecycle

The react-reconciler was rewritten entirely as of React version 16 with a better implementation called React Fiber. Before React Fiber the Reconciler was tightly coupled. Now it is decoupled and it is easier to write custom renderers. react-reconciler API doesn’t follow the same guarantees as the public API of react since it is constantly being tuned.

Check out these awesome custom renderers

https://github.com/chentsulin/awesome-react-renderer

Solving Problems. Making Software Better. Intrigued by Elegant Solutions. https://twitter.com/agent_hunt

Solving Problems. Making Software Better. Intrigued by Elegant Solutions. https://twitter.com/agent_hunt