1
0
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:
David Calhoun
2020-01-27 15:21:08 -05:00
committed by Ian Storm Taylor
parent 5797562849
commit 27db5e6c45

View File

@@ -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'