importReact,{useState}from'react';importJoyridefrom'react-joyride';/* * If your steps are not dynamic you can use a simple array. * Otherwise you can set it as a state inside your component.*/conststeps= [{target:'.my-first-step',content:'This is my awesome feature!',},{target:'.my-other-step',content:'This another awesome feature!',},];exportdefaultfunctionApp(){ // If you want to delay the tour initialization you can use the `run` propreturn (<div><Joyridesteps={steps}/> ...</div> );}
To support legacy browsers, include the scrollingelement polyfill.