Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Update Overview.md #2434

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/Overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ If you are interested in helping out, or tracking the progress, please follow
import React from 'react';
import ReactDOM from 'react-dom';
import {Editor, EditorState} from 'draft-js';
import 'draft-js/dist/Draft.css';

class MyEditor extends React.Component {
constructor(props) {
Expand All @@ -70,6 +71,7 @@ Since the release of React 16.8, you can use [Hooks](https://reactjs.org/docs/ho
import React from 'react';
import ReactDOM from 'react-dom';
import {Editor, EditorState} from 'draft-js';
import 'draft-js/dist/Draft.css';

function MyEditor() {
const [editorState, setEditorState] = React.useState(
Expand Down