Change locale in react-datepicker
问题 I am using react-datepicker NPM package, I tried to follow documentation but I was unable to import registerLocale and setDefaultLocale from react-datepicker Do you see where I make mistake? import DatePicker from 'react-datepicker'; ... <DatePicker { ...this.props } dateFormat={ this.dateFormat } ref={ (node) => { this.ref = node; } } onClickOutside={ this.clickOutside } /> ... this is code where I want to import locale. 回答1: First of all make sure you are using the latest version of the