With npm:
npm install reactintercomlib --saveInitializing IC and using widget in component:
importReactIcfrom'reactintercomlib'classAppextendsComponent{componentDidMount(){constotherOptions={first_name: 'John',last_name: 'Doe'}ReactIc.initialize({app_id: 'd3vzmxvx',hide_default_launcher: false,
...otherOptions})}render(){return(<divclassName="App"><headerclassName="App-header"><imgsrc={logo}className="App-logo"alt="logo"/><h1className="App-title">Welcome to React</h1></header><pclassName="App-intro">
To get started, edit <code>src/App.js</code> and save to reload.
</p></div>);}}exportdefaultApp;