From 1a63a0dc0d958998bc9e52761fc2dd01a63dd3f2 Mon Sep 17 00:00:00 2001
From: Ward Oosterlijnck import useToggle from 'react-use/lib
-Depending on your bundler you might run into a missing dependency error. Some hooks require you to install peer dependencies so we recommend using individual imports. If you want the best of both worlds you can transform the named import statements to individual import statements with babel-plugin-import by adding the following config to your `.babelrc` file:
+or use ES6 named imports import {useToggle} from 'react-use'.
+
+Depending on your bundler you might run into a missing dependency error with ES6 named import statements. Some hooks require you to install peer dependencies so we recommend using individual imports. If you want the best of both worlds you can transform the named import statements to individual import statements with babel-plugin-import by adding the following config to your `.babelrc` file:
```json