react-user-guide
react-user-guide copied to clipboard
starting user guide trigger
how can i trigger the start of the user guide with an event?
You should be able to do this.
export default class App extends Component {
render () {
if(!event) {
return (
<div style={style} className="unique-classname">Target element</div>
);
}
return (
<UserGuide buttonConfig={buttonConfig} guides={guides}>
<div style={style} className="unique-classname">Target element</div>
</UserGuide>
)
}
}
i want some kind of trigger that i can call whenever, is a user wants to start is again, i guess i can clear the cookie or something, then do it this way, but seems to hacky, there is no way to call the start method?