Skip to content

nova4005/drafti

Repository files navigation

drafti

This is in a Rough state and should not be used. I am building and learning as I go with this project.

NPM JavaScript Style Guide

Install

npm install --save drafti

Usage

import React, {useState} from 'react';
import {EditorState}     from 'draft-js';
import {Drafti}          from 'drafti'

const Example = props => {
    // Set up your editorState
    const [editorState, setEditorState] = React.useState(
        EditorState.createEmpty()
    );
    return (
        <Drafti editorState={editorState}
                setEditorState={setEditorState} />
    )
}

License

MIT © nova4005

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published