See different branches for different examples of single-page apps.
This is an example of one way to integrate Intercom into your React app with React Router.
yarn install
ornpm install
- Replace
YOUR_APP_ID
with your actual app ID.- After logging into Intercom at https://app.intercom.com, your app_id is in the URL:
https://app.intercom.com/a/apps/{app_id here}
- After logging into Intercom at https://app.intercom.com, your app_id is in the URL:
yarn start
- Open http://localhost:3000 to view it in the browser.
For more documentation, visit our documentation