Use it to showcase your app to new users or explain functionality of new features.
It uses react-floater for positioning and styling.
And you can use your own components if you want.
View the demo here
npm i react-joyride@next
import Joyride from 'react-joyride';
export class App extends React.Component {
state = {
run: false,
steps: [
{
target: '.my-first-step',
content: 'This is my awesome feature!',
},
{
target: '.my-other-step',
content: 'This another awesome feature!',
},
...
]
};
componentDidMount() {
this.setState({ run: true });
}
render () {
const { steps, run } = this.state;
return (
<div className="app">
<Joyride
run={run}
steps={steps}
...
/>
...
</div>
);
}
}