input-moment icon indicating copy to clipboard operation
input-moment copied to clipboard

Possible Instruction Improvements

Open machineghost opened this issue 7 years ago • 2 comments

Hello. I've been comparing React-based date and time pickers, and input-moment looks to be the best. However, getting up to speed with it could be a little easier. If you ...

  1. Included an import or require line in the readme.md instructions code; without this one doesn't know whether to do import InputMoment from 'input-moment' or import {InputMoment} from 'input-moment'

  2. Mention the CSS requirements (and how to fulfill them); right now there's no mention of the CSS on the readme.md, but obviously the CSS is pretty important to the library

Thanks for making input-moment!

machineghost avatar Dec 15 '16 21:12 machineghost

Thank you for all your feedbacks, will try to fix those issues.

wangzuo avatar Dec 16 '16 04:12 wangzuo

Since node_modules is commonly ignored in webpack, i would suggest including this as the example for CSS

require("style-loader!css-loader!input-moment/dist/input-moment.css");

for webpack users, to ensure it gets loaded the same way w/o the need to add exclusions in your webpack config.

aikar avatar Feb 24 '17 15:02 aikar