import NumberPicker from '..';
import React from 'react';
import ReactDOM from 'react-dom';
const intlize = val => Intl.NumberFormat('en-US').format(val);

ReactDOM.render(
  <div>
    <NumberPicker format={intlize} defaultValue={5000} />
    <br />
    <br />
    <NumberPicker
      // @ts-ignore
      label="p:"
      format={val => `${val}%`}
      defaultValue={85}
    />
    <br />
    <br />
    <NumberPicker innerAfter="%" />
  </div>,
  document.getElementById('number-picker-demo-8'),
);
