Pure React editor with instant grammar corrections using PerfectTense on development version.
npm install perfecttense-pure-react-editor-development``bash`
npm install --save perfecttense-editor
OR
yarn add perfecttense-editor
##Props
| Prop Name | Required | Type | Default
| ------------ |:---------:|:--------|:----
| socketUrl | false | String | https://io.perfecttense.com
| onDraftSave | false | Function | (uid) => {}
| onLoadingStateChanged | false | Function | (bufferSize) => {}
| onGrammarScoreChanged | false | Function | (grammarScore) => {}
`jsx
import React, { Component } from 'react'
import PerfectTenseEditor from 'perfecttense-editor'
class Example extends Component {
render () {
return (
)
}
}
`
We have our source code for the editor in src/, and there are example components in examples/ that can be used for development purpose. parcel is recommended.
Run the following commands from the root of the project.
`bashcreate a symlink of the package that can be used in any local project.
yarn link
Now, go to
examples/parcel directory(in another tab) and run the following
`bashInstall dependencies
yarn installSymlink previously built dependency for
example project
yarn link perfecttense-editorStart localhost server on port 1234
yarn start
``MIT © [Cortx]