Datepicker library based for Reactjs

bear-react-datepicker

Datepicker library based for Reactjs

Install

yarn add bear-react-datepicker

Usage

add in your index.tsx

import "bear-react-datepicker/dist/index.css";

then in your page

import {EStatus, toast} from 'bear-react-datepicker';


const BaseUsed = () => {

    return (
        <div>
            <Datepicker onChange={setMyDate} value={myDate}/>
            <Datepicker onChange={setMyDate} value={myDate} locale="zh-CN"/>


        </div>
    );

};

There is also a codesandbox template that you can fork and play with it:

Component and setup docs

License

MIT © imagine10255

GitHub

View Github