-
Notifications
You must be signed in to change notification settings - Fork 6
React v16
Joe Palmer edited this page Apr 15, 2020
·
6 revisions
Integrating with React is pretty straight forward. First of all, include the @iproov/web
package into your application and then include the web component with your generated token. If you want to pass any custom slots in, use the same method as shown below. The example below is taken from the create-react-app tool.
import React, { Component } from 'react';
require('@iproov/web'); // includes the @iproov/web client into your app
class App extends Component {
render() {
return (
<div className="App">
<!-- replace with your generated token -->
<iproov-me token="***YOUR_TOKEN_HERE***">
<!-- add any custom slots here -->
<div slot="button">
<button type="button">
My Custom Button Text
</button>
</div>
</iproov-me>
</div>
);
}
}
export default App;