Skip to content

texmex44/react-numeral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-numeral

React implementation of numeraljs

Installation

To install, you can use npm or yarn:

$ npm install --save react-numeral
$ yarn add react-numeral

Usage

Here is a simple example of react-numeral being used in an app :

import React from 'react';
import Numeral from 'react-numeral';

class App extends React.Component {
  render() {
    return (
      <Numeral
        value={100000}
        format={"0,0"}
      />
    );
  }
}

Props

  • value - The number you want to format
  • format - The format (see here for the complete list )

About

React implementation of numeraljs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published