Closed erkieh closed 5 years ago
@erkieh Yes, you can import not connected component:
import { LoadingBar } from 'react-redux-loading-bar'
And mount it the following way:
<header>
<LoadingBar loading="1" />
</header>
Please note that you will need to pass loading
prop > 0 to show Loading Bar and = 0 to hide it.
I was hoping to use it without having redux in my project at all. The import still runs the script and tries to create a connected component.
@erkieh Well, redux
is a peer dependency and will always be. If you don't use redux
at all, you might want to choose another pure react library.
Would it be possible to use this without redux?