Installing Crisp with React is very easy. Here is the solution

Create an account on Crisp.
Go to Settings. Then, Website Settings.
Next to your website, click on Settings.
Click on Setup instructions.
Click on Chatbox setup instructions.
Select HTML.

Copy the JavaScript code

Go to your React codebase and find the main component.

class App extends React.Component {
  componentDidMount () {
    // Include the Crisp code here, without the <script></script> tags
    window.$crisp = [];

    (function() {
      var d = document;
      var s = d.createElement("script");

      s.src = "";
      s.async = 1;
  render () {
    return (
          <Route path="/" component={LogPageView} />
          <div className="content">
              <Header title="Site Title" />
              <Routes />
              <Footer />
export default App

Make sure to replace CRISP_WEBSITE_ID with yours. Otherwise, this will not work!
Was this article helpful?
Thank you!