Skip to content

Commit ad499a2

Browse files
evaldosantosmartijnrusschen
authored andcommitted
(docs) improve locale section (Hacker0x01#1646)
1 parent 164d10d commit ad499a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs-site/src/examples/locale.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ export default class CustomStartDate extends React.Component {
2626
<br />
2727
{"// npm install --save date-fns@version"}
2828
<br />
29+
{"import DatePicker, { registerLocale } from 'react-datepicker';"}
30+
<br />
2931
{"import enGB from 'date-fns/locale/en-GB';"}
3032
<br />
3133
{"registerLocale('en-GB', enGB);"}

0 commit comments

Comments
 (0)