@@ -104,7 +104,7 @@ Here is the TLDR of what sortable is:
104104
105105``` tsx
106106import React , { FC , useState } from " react" ;
107- import { ReactSortable } from " react-sortablejs-typescript " ;
107+ import { ReactSortable } from " react-sortablejs" ;
108108
109109interface ItemType {
110110 id: number ;
@@ -131,7 +131,7 @@ export const BasicFunction: FC = props => {
131131
132132``` tsx
133133import React , { Component } from " react" ;
134- import { ReactSortable } from " react-sortablejs-typescript " ;
134+ import { ReactSortable } from " react-sortablejs" ;
135135
136136interface BasicClassState {
137137 list: { id: string ; name: string }[];
@@ -287,8 +287,8 @@ Here we will use a `ul`. You can use any HTML.
287287Just add the string and ReactSortable will use a ` li ` instead of a ` div ` .
288288
289289``` tsx
290- import React , { FC , useState , forwardRef } from " react" ;
291- import { ReactSortable } from " react-sortablejs-typescript " ;
290+ import React , { FC , useState } from " react" ;
291+ import { ReactSortable } from " react-sortablejs" ;
292292
293293export const BasicFunction: FC = props => {
294294 const [state, setState] = useState ([{ id: " 1" , name: " shrek" }]);
@@ -315,7 +315,7 @@ If it doesn't have one, you can add one using `React.forwardRef()`.
315315
316316``` tsx
317317import React , { FC , useState , forwardRef } from " react" ;
318- import { ReactSortable } from " react-sortablejs-typescript " ;
318+ import { ReactSortable } from " react-sortablejs" ;
319319
320320// This is just like a normal component, but now has a ref.
321321const CustomComponent = forwardRef <HTMLDivElement , any >((props , ref ) => {
0 commit comments