Thursday, 8 August 2019

Css not working for intro.js module in React

I have added Intro.js as below in one of my components:

import introJs from 'intro.js';

Then called it in componentDidMount

    componentDidMount() {
    introJs().start();
}

Element where I am using it at:

 <div className={cx('dropDownSortingBlock')}>
                {!isTrending && <div className={cx('dropDown')} data-intro={'Hello step one!'}>

However when i import css into a parent component

enter image description here

It doesn't render the component.

enter image description here



from Css not working for intro.js module in React

No comments:

Post a Comment