@minko-fe/use-nprogress
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

use-nprogress

WHAT IS THIS?

NProgress的进度数值,而非 UI

EXAMPLES

BASIC EXAMPLE

NProgress EXAMPLE

特点

  • 支持多实例(NProgress 是单例模式)

安装

yarn add @minko-fe/use-nprogress

使用

import { useState } from 'react';
import useNProgress from 'use-nprogress';

const Example: React.FC = () => {
  const [loading, setLoading] = useState(false);

  const { progress, isFinished, animationDuration } = useNProgress({
    isAnimating: loading,
  });
};

灵感来源

nprogress

Dependencies (0)

    Dev Dependencies (19)

    Package Sidebar

    Install

    npm i @minko-fe/use-nprogress

    Weekly Downloads

    1

    Version

    0.0.8

    License

    MIT

    Unpacked Size

    13.3 kB

    Total Files

    8

    Last publish

    Collaborators

    • hemengke-