An open API service indexing awesome lists of open source software.

https://github.com/xpioneer/react-contenteditable

A Simple ContentEditable Component with React
https://github.com/xpioneer/react-contenteditable

contenteditable hooks react typescript

Last synced: about 2 months ago
JSON representation

A Simple ContentEditable Component with React

Awesome Lists containing this project

README

          

### React-ContentEditable

A simple editable plugin with react, can fire keywords(props key: `delimiter`, default: `#`)

#### Installation
```
yarn add react-editable-tag

#or

npm i react-editable-tag
```

#### Usage
```js
import React, { useState } from 'react'
import { ContentEditable } from '../src/index'

function App() {
const [keyWords, setKeyWords] = useState()

const onKeyWord = () => {
const val = prompt('Please input')
if(val !== null) {
setKeyWords(val)
}
}

return




}
```

#### Features

* React Hooks
* TypeScript
* Antd Style