React application in ServiceNow

1. Create React application

node -v
npx create-react-app my-app
npm start
Just add a line #10 and save the file, a browser will be updated automatically

2. Build the application

"build": "node build-no-split.js"
npm run build

3. Deploy React application to ServiceNow

Import .js and .css assets

js code served as .cssdbx content

You can also serve .js code as a ServiceNow UI script (System UI -> UI Scripts), it works absolutely the same way like style sheets, just reference it as <UI_script_API_name>.jsdbx


Upload static images

Deploy the core HTML file



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store