Skip to content

Commit 9541035

Browse files
authored
Update README.md
1 parent d322f8b commit 9541035

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

README.md

+12-13
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,6 @@ const MyComponent = () => (
2525
);
2626
```
2727

28-
## Standalone Version
29-
30-
The standalone version does **not** come bundled with [scroll-into-view-if-needed](https://www.npmjs.com/package/scroll-into-view-if-needed). Use this version if you'd like to maintain your own dependency for scroll-into-view-if-needed, or if you're already using scroll-into-view-if-needed in other areas of your project.
31-
32-
**ES version:**
33-
34-
`import ScrollIntoViewIfNeeded from 'react-scroll-into-view-if-needed/dist/es/standalone.js'`
35-
36-
**UMD version:**
37-
38-
`import ScrollIntoViewIfNeeded from 'react-scroll-into-view-if-needed/dist/umd/standalone.js'`
39-
40-
4128
## Props
4229

4330
Each prop is described in detail below, but for a quicker reference - check out the [propTypes](https://github.com/icd2k3/react-scroll-into-view-if-needed/blob/master/src/index.js#L7-L42) object in src.
@@ -111,6 +98,18 @@ You can also pass normal element attributes like `className` to the component.
11198
</ScrollIntoViewIfNeeded>
11299
```
113100

101+
## Standalone Version
102+
103+
The standalone version does **not** come bundled with [scroll-into-view-if-needed](https://www.npmjs.com/package/scroll-into-view-if-needed). Use this version if you'd like to maintain your own dependency for scroll-into-view-if-needed, or if you're already using scroll-into-view-if-needed in other areas of your project.
104+
105+
**ES version:**
106+
107+
`import ScrollIntoViewIfNeeded from 'react-scroll-into-view-if-needed/dist/es/standalone.js'`
108+
109+
**UMD version:**
110+
111+
`import ScrollIntoViewIfNeeded from 'react-scroll-into-view-if-needed/dist/umd/standalone.js'`
112+
114113
## Upgrading from v1
115114

116115
This project has been updated along with `scroll-into-view-if-needed` and accepts the same `options`. Check out the [migration guide](https://www.npmjs.com/package/scroll-into-view-if-needed#breaking-api-changes-from-v1) over there!

0 commit comments

Comments
 (0)