For this post , i assume you are familiar with basics of SharePoint framework development, using yoman templates , node package manager and gulp. Else please refer to my earlier post
Basics of SPFX
Sharepoint Framework (SPFX) is becoming popular as it is the only way to add custom functionality to a Sharepoint Online modern pages.
We can integrate any java script framework to work with SPFX. In last post we did integrate Angular with SPFX. But, we need to do everything from scratch like importing packages and then adding them in config files, etc.
REACT is one of the java script framework which comes with yoman scaffold out of the box. So the installation, references and default code were taken care by yoman generator. React got lot of plugin support and its consistently improving by each version.
So REACT became a mandatory component to learn for SPFX development.
REACT coding is mostly dealing with properties and state on client side.
For this we have 2 types of components in REACT.