我是 reactJS 的新手,我正在尝试使用纯flatpickr(https://flatpickr.js.org,而不是 react-flatpickr)下面是我当前的代码。有关如何正确实施它的任何帮助?
import React, { Component } from "react"
import flatpickr from "flatpickr"
export default class Datepicker extends Component<IProps> {
public render() {
flatpickr(".datepicker")
return (
<div>
<input type="text" className="datepicker" />
</div>
)
}
}