React SDK
YoBulk has developed a NPM plugin which can be downloaded from https://www.npmjs.com/package/yoembed
The SDK can be used in any SaaS application by importing the npm module in your react code base.
Anyone can clone it from yoembed-sample-react-app and experiment with creating a CSV import button.
Please ensure to create a Importer first using YoBulk importer configuration.
importerId
has to match with the ID created through YoBulk backend.
If you are running the YoBulk backend in a specific port then please update
the yoHostUrl
accordingly.
- code snippet from YoBulk Sample SaaS application.
function App() {
return (
<div className="App">
<h2>This is my SAAS</h2>
<hr />
<br />
<YoButton
btnText="My upload"
importerId={"63d1eecfb9086d1c4170a1d8"}
yoHostUrl={"http://localhost:3000"}
/>
</div>
);
}
export default App;