intly-react
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-alpha.2 • Public • Published

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

/intly-react/

    Package Sidebar

    Install

    npm i intly-react

    Weekly Downloads

    73

    Version

    0.0.1-alpha.2

    License

    MIT

    Unpacked Size

    7.46 kB

    Total Files

    9

    Last publish

    Collaborators

    • wadackel