mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-29 09:59:48 +02:00
docs: walkthroughs: make implicit React dependencies explicit (#3402)
This commit is contained in:
committed by
Ian Storm Taylor
parent
5797562849
commit
27db5e6c45
@@ -17,6 +17,9 @@ _Note, if you'd rather use a pre-bundled version of Slate, you can `yarn add sla
|
||||
Once you've installed Slate, you'll need to import it.
|
||||
|
||||
```js
|
||||
// Import React dependencies.
|
||||
import React, { useEffect, useMemo, useState } from "react";
|
||||
|
||||
// Import the Slate editor factory.
|
||||
import { createEditor } from 'slate'
|
||||
|
||||
|
Reference in New Issue
Block a user