Using React in a ServiceNow instance

Robert Fauver
Tera Contributor

Is it possible to use React in a ServiceNow instance? Is anyone doing this in production? Pros? Cons? Please let me know and thanks in advance for your help.

6 REPLIES 6

NarashimanK
Tera Contributor

Even in 2025 is this valid and does it works. Can we integrate with ReacJS application
I want to intercept the attachment clicks and load that in my own PDF viewer. Is that possible? 
My PDF viewer is in ReactJS. 

Hey there. The idea and the implementation is as hot and valid as it was on day one. React was and is the most widespread and potent JavaScript framework to build SPA or widgets… but enough advertisement.

 

Not exactly sure which exact UI component you mean with “attachment clicks” - attachments can be opened in classic UI in multiple ways, in portal widgets, in UI Builder pages / Workspaces.

Depending which UI you refer to, you may have to use different strategies to “hook” the click.

 

However, once you did, let’s assume you can redirect the user to a new page or tab which shows a UI page (sys_ui_page) and provide the attachment id as a parameter - together with whatever additional useful context information - then yes, it’s React time 🙂

 

Your React app can be shipped through the UI page - if its built and compiled outside the platform and you don’t plan to change it, you can provide the js code as a static asset and refer to it in the UI page source code.

 

If you want to develop the React app INSIDE the platform, Reactor can help:

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