diff --git a/docs-site/src/examples/locale.jsx b/docs-site/src/examples/locale.jsx index b2467aa15..35d97ecf9 100644 --- a/docs-site/src/examples/locale.jsx +++ b/docs-site/src/examples/locale.jsx @@ -20,6 +20,12 @@ export default class CustomStartDate extends React.Component {
+ {"// Note: Make sure to npm install the right version of date-fns as"}
+
+ {"// specified in packaged.json. The default one may not be compatiable"}
+
+ {"// npm install --save date-fns@version"}
+
{"import enGB from 'date-fns/locale/en-GB';"}
{"registerLocale('en-GB', enGB);"}