1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-20 13:22:04 +02:00

remove duplicate useState import (#5194)

This commit is contained in:
Lagu Longa 2022-11-17 11:21:51 -05:00 committed by GitHub
parent 70b64dc8f1
commit c8c75e9e2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ declare module 'slate' {
Annotate the editor's initial value w/ `Descendant[]`.
```tsx
import React, { useState, useState } from 'react'
import React, { useState } from 'react'
import { createEditor, Descendant } from 'slate'
import { Slate, Editable, withReact } from 'slate-react'