How to use the @tanem/react-nprogress.withNProgress function in @tanem/react-nprogress

To help you get started, we’ve selected a few @tanem/react-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 tanem / react-nprogress / examples / hoc / src / Progress.js View on Github external
import Spinner from './Spinner'

const Progress = ({ isFinished, progress, animationDuration }) => (
  
    
    
  
)

Progress.propTypes = {
  animationDuration: PropTypes.number.isRequired,
  isFinished: PropTypes.bool.isRequired,
  progress: PropTypes.number.isRequired
}

export default withNProgress(Progress)

@tanem/react-nprogress

A React primitive for building slim progress bars.

MIT
Latest version published 1 year ago

Package Health Score

61 / 100
Full package analysis

Popular @tanem/react-nprogress functions