diff --git a/.babelrc b/.babelrc
index a9fcd42..c11a16a 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,13 +1,9 @@
{
"comments": false,
- "presets": [
- ["@babel/preset-env", { "targets": { "browsers": ["last 2 versions"] } }],
- "@babel/preset-react",
- "minify"
- ],
+ "presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread",
- "@babel/plugin-transform-react-jsx"
+ ["transform-react-remove-prop-types", { "removeImport": true }]
]
}
diff --git a/README.md b/README.md
index 02cfe30..3b6cb61 100644
--- a/README.md
+++ b/README.md
@@ -20,9 +20,16 @@ import ScrollAgent from 'react-scroll-agent';
(
@@ -39,15 +46,14 @@ import ScrollAgent from 'react-scroll-agent';
-
+;
```
-
### Props
| Name | Type | Required | Default | Description |
| :---------- | :--------- | :------: | :------ | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `selector` | `String` | ✅ | | Any CSS selector to specify which elements in `children` to attach the scrollspy to. |
+| `selector` | `String` | ✅ | | Any CSS selector to specify which elements in `children` to attach the scrollspy to. |
| `children` | React Node | | | Standard child passthrough. This is where it watches for scroll events. |
| `detectEnd` | `Boolean` | | `true` | If `true`, the last index will be highlighted when scrolled to the bottom. If `false`, then when scrolled to the bottom, `current` will return whichever container is currently at `threshold`. |
| `nav` | React Node | | | Render prop that returns `current` index in view and all `positions` of items. |
@@ -58,7 +64,6 @@ import ScrollAgent from 'react-scroll-agent';
The `nav` render prop returns the following items:
```jsx
-
(