How to use the nprogress/nprogress.js.set function in nprogress

To help you get started, we’ve selected a few nprogress examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Ewell-FE / antd-material / src / routers / authority / view / index.js View on Github external
render() {
        const {components, fetching} = this.props.home
        if(!fetching){
            NProgress.done();
        }else{
            NProgress.set(0.4);
        }
        if (!fetching) {
            return (
                <div id="home">
                    
                </div>
            )
        }
        return (
            <div style="{{background:&quot;#EAEBED&quot;}}" id="home">
                <div>
                    <div></div>
                    <div></div>
                    <div></div>
                    <div></div>
                    <div></div></div></div>