How to use React Datepicker

install

import css for React Datepicker

import 'react-datepicker/dist/react-datepicker.css';

If you want to change the locales…

import DatePicker, { registerLocale } from 'react-datepicker';import ja from 'date-fns/locale/ja';registerLocale('ja', ja);
<DatePicker
locale="ja"
/>

Started LinkedIn as well!

https://www.linkedin.com/in/tomoharu-tsutsumi-56051a126/

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store