React component for YouVisit IWC
npm install --save @ux_bob/yv-iwc
Run npm run start
in this folder to watch for and build changes.
cd
into testing
directory and run npm run start
to start a react app that has the YouVisitIWC
component.
Go to http://local.dev.youvisit.com:3000/
to see the IWC on a page.
Run npm run publishToNpm
import React from "react";
import { YouVisitIWC } from "@ux_bob/yv-iwc";
const App = () => {
return (
<div>
<YouVisitIWC
containerWidth="100%"
containerHeight="400px"
title="IWC Title"
institution={institutionId}
location={locationId}
showCode="true or blank"
/>
</div>
);
};
export default App;
MIT © b00y0h