Would you please provide more details about the use case you want to implement. Refer to the following link if your ask was only to create a form in React.js
For implementing it for the AEM forms also, it would follow the similar approach to create React SPA component in AEM. You only have to assign it under the similar component group name as "Adaptive Form" so that this component would be listed to drag drop on the forms.
I saw that before. Still, my blocking issue is how to import the global variables and forms page context parameters, for a forms component, for JSP file, we can use:
@davidzhang form has not been tested with react components unlike AEM which has SPA support. There is something in pipe line to bring it closer to aem core component on Cloud, are you using on prem?
@avinash_gupta_@davidzhang the core essence of the OOTB form components is its data binding capabilities, do keep in mind once you bring REACT components the data handling, DOR, sign, and FDM would not understand your custom component though you may have UX then you need to handle the custom component data capture capability and merge to the form data on your own.