Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 465 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 465 Bytes

draft-go

Grab and go draft.js editor

Install

npm install --save draft-go

Usage

import React, { Component } from 'react';
import GoEditor from 'draft-go';

export default class Main extends Component {
  render() {
    return (
      <div as="main" role="main">
        <GoEditor
          onChange={(editorState) => this.setState({editorState})}
        />
      </div>
    )
  }
}

Live Demo