Run npm i @zooplus/zoo-web-components --save to install the package.
Modify you main index.js and add the following line: import "@zooplus/zoo-web-components";
Use web components in your application:
render(){return(<divclassName="App"><zoo-header><h1slot="headertext">Zoo web components in React</h1><imgslot="img"alt="Zooplus logo"src="assets/logo.png"/></zoo-header><formstyle={{maxWidth: 768+'px',margin: 0+' auto'}}noValidateonSubmit={this.submit.bind(this)}><zoo-select><labelhtmlFor="select-id1"slot="label">Name</label><selectid="select-id1"slot="select"requireddefaultValue=""><optiondisabledvalue="">Please choose an option</option>{this.state.options.map(option=><optionvalue={option.id}key={option}>{option.firstName}{option.lastName}</option>)}</select><spanslot="error">Name is required</span></zoo-select><zoo-input><labelhtmlFor="input-id1"slot="label">Input date field</label><inputid="input-id1"type="date"slot="input"value={this.state.name}required/><spanslot="info">Information text</span><spanslot="error">Invalid value</span></zoo-input><zoo-button><buttontype="submit">Submit</button></zoo-button></form></div>);}