8000 Update README.md · dasveloper/react-sortablejs@cb1e67f · GitHub
[go: up one dir, main page]

Skip to content

Commit cb1e67f

Browse files
authored
Update README.md
1 parent bb13bdb commit cb1e67f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Here is the TLDR of what sortable is:
104104

105105
```tsx
106106
import React, { FC, useState } from "react";
107-
import { ReactSortable } from "react-sortablejs-typescript";
107+
import { ReactSortable } from "react-sortablejs";
108108

109109
interface ItemType {
110110
id: number;
@@ -131,7 +131,7 @@ export const BasicFunction: FC = props => {
131131

132132
```tsx
133133
import React, { Component } from "react";
134-
import { ReactSortable } from "react-sortablejs-typescript";
134+
import { ReactSortable } from "react-sortablejs";
135135

136136
interface BasicClassState {
137137
list: { id: string; name: string }[];
@@ -287,8 +287,8 @@ Here we will use a `ul`. You can use any HTML.
287287
Just 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

293293
export 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
317317
import 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.
321321
const CustomComponent = forwardRef<HTMLDivElement, any>((props, ref) => {

0 commit comments

Comments
 (0)
0