0.0.1-alpha.2 • Published 4 years ago

intly-react v0.0.1-alpha.2

Weekly downloads
518
License
MIT
Repository
github
Last release
4 years ago

intly-react

description

Getting Started

todo

$ npm install --save intly intly-react
# or
$ yarn add intly intly-react

todo

import { Intly } from 'intly';
import { createIntlyHandler } from 'intly-react';

const intly = new Intly('en', {
  hello: 'Hello, World',
});

const IntlyHandler = createIntlyHandler(intly);

ReactDOM.render(
  <IntlyHandler>
    <h1>{intly.t('hello')}</h1>
  </IntlyHandler>,
  document.getElementById('app'),
);

API

todo