Skip to content

react-joyride component name #631

Closed Answered by gilbarbara
vaishawil asked this question in Q&A
Discussion options

You must be logged in to vote

hey @vaishawil

It's not possible as this library needs a DOMElement.

Just to be clear the component doesn't have a className, but the markup it renders can have multiple elements with multiple classes.

You could use a ref but it has some limitations (the ref is assigned AFTER the first render) so you would have to set the run prop as a state in your controller component and only change it to true after the component has mounted.

Also, it's a convention to name your components using PascalCase, so use TutorialBasic instead.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vaishawil
Comment options

Answer selected by gilbarbara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants