A node module that will help user create a tour of an application. Note: reactjs-onboarding is in development mode.
npm install reactjs-onboardinggit clone`
2) Using npm `npm install reactjs-onboarding.js --save`
Usage
reactjs-onboarding.js can be added to your project in four simple steps:
1) Include named imports of Onboarding.js and OnboardingItem.js / OnboardingTag.js in your project
`jsx
import {Onboarding} from 'reactjs-onboarding'
import {OnboardingItem} from 'reactjs-onboarding'
import {OnboardingTag} from 'reactjs-onboarding'
`
2) Create a state variable visible in the class and set it to false
`jsx
state = { visible:false };
`
3) Set visible parameter to true when you want the Onboarding to get called
`jsx
this.setState({ visible: true })
`
4) Passing the coordinates
* Give unique Id to the element that you want to point the arrow to
`jsx
Pass the co-ordinates by id
`
* Give unique reference to the element you want to point the arrow to
`jsx
this.reference = e}>
Pass the co-ordinates by reference
`
* Give coordinates in the form of object of the area where you want to point the arrow to. l - left, t - top, w - width, h- height
`jsx
`
* Enclose the elements you want to highlight in an OnboardingTag
`jsx
``