@tagit/presentation-react
v1.0.0
Published
Thin React adapter for the tagIt presentation web runtime
Readme
@tagit/presentation-react
Thin React adapter over @tagit/presentation-web.
import { PresentationProvider, usePresentation } from '@tagit/presentation-react';
import '@tagit/presentation-web/styles.css';
function StartGuide() {
const presentation = usePresentation();
return <button onClick={() => presentation.start('tag-builder')}>Start</button>;
}
<PresentationProvider scenarios={[scenario]}>
<StartGuide />
</PresentationProvider>;Mount the provider once in the application shell. Pass the current URL when the
host router does not update window.location directly, and bridge product state
with named application events.
