How do I use ReactJS with ServiceNow?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2019 12:44 AM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2022 03:22 AM
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:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2020 01:23 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2020 01:26 PM
..and there is a video from K19: https://community.servicenow.com/community?id=community_article&sys_id=8246a75cdb9d3b0422e0fb2439961...