Skip to content

richardzcode/draft-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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