How do I use ReactJS with ServiceNow?

Georgia2
Mega Contributor

Hello! I am trying to create a widget in ServiceNow using ReactJS. I am following this tutorial (https://codecreative.io/blog/react-component-in-service-portal/) but it is not working in my case. Do you have any suggestions? I have attached the HTML and JS code I have that works, but transferring it into ServiceNow does not work. Do you have any suggestions as to where to look or what am I doing wrong?

 

 

 

7 REPLIES 7

The error you got indicates you are using JSX syntax where html tags are "mixed" into Javascript code.

The Reactor app enables you to build and deliver React applications directly from a ServiceNow instance. No need for an external development environment or pre-compilation. You can ship apps or individual components as part of your scoped apps. It also supports JSX.

Check this out:

https://www.wildgrube.com/servicenow-reactor