diff --git a/docs/_docs/v2.3.0/download.md b/docs/_docs/v2.3.0/download.md index 8998136..8a02b15 100644 --- a/docs/_docs/v2.3.0/download.md +++ b/docs/_docs/v2.3.0/download.md @@ -116,11 +116,11 @@ Then install Folktale through npm as well: Ideally, require only the Folktale modules you'll be using. This helps keeping the overall size smaller. For example, if you're using only the `Maybe` and `compose` functions, don't load the library's entry-point, just those modules: ```js -const Maybe = require('folktale/maybe'); -const compose = require('folktale/core/lambda/compose'); +import Maybe from 'folktale/maybe'; +import compose from 'folktale/core/lambda/compose'; -const inc = (x) => x + 1; -const double = (x) => x * 2; +const inc = x => x + 1; +const double = x => x * 2; Maybe.Just(1).map(compose(double, inc)); // ==> Maybe.Just(4)