2.0.0 • Published 5 years ago

react-roman v2.0.0

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

react-roman

Travis

npm package

License

Display numbers in the form of roman numerals.

Install

yarn add react-roman

Usage

import React from 'react'
import Roman from 'react-roman'

export default () => <Roman>514</Roman>

You can also make usage of the internal romanize function if you so desire.

import React, { Component } from 'react'
import { romanize } from 'react-roman'

export default class App extends Component {
  onChange = event => {
    console.log(romanize(event.target.value))
  }

  render = () => {
    <div>
      <h1>When was Juluis Caesar assasinated?</h1>
      <input type='number' onChange={this.onChange} />
    </div>
  }
}
2.0.0

5 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago