import "acalendar/style/theme_light.css";
// OR
import "acalendar/style/theme_dark.css";
import { Calendar } from "acalendar";
import moment from "moment";
// Setting a locale
moment.locale("en");
/**
* @param {moment} date
*/
function onChange(date) {
console.log(date.format("DD/MM/YYYY"))
}
ReactDOM.render(<Calendar
date={moment.now()} // moment object
onChange={onChange}/>, container);
-
Notifications
You must be signed in to change notification settings - Fork 1
sveridovd/acalendar
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|