Skip to content

Commit d6beedd

Browse files
authored
(Fix) Typo with imports in two code samples
Fix imports in the codes samples. It was importing from `./src` instead of the package. This only worked when you are working with source code.
1 parent 33c2002 commit d6beedd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ A controlled component will keep DOM nodes untouched. You have to change state t
186186
import uniqueId from 'lodash/uniqueId';
187187
import React from 'react';
188188
import ReactDOM from 'react-dom';
189-
import Sortable from '../src';
189+
import Sortable from 'react-sortablejs';
190190

191191
class App extends React.Component {
192192
state = {
@@ -224,7 +224,7 @@ File: shared-group.jsx
224224
```js
225225
import uniqueId from 'lodash/uniqueId';
226226
import React from 'react';
227-
import Sortable from '../src';
227+
import Sortable from 'react-sortablejs';
228228

229229
// Functional Component
230230
const SharedGroup = ({ items }) => {

0 commit comments

Comments
 (0)