0.1.1 • Published 6 years ago

react-at-roork v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

react-at

  • Filter/Scroll/Insert/Delete
  • Keyboard/Mouse events
  • Plain-text based, no jQuery, no extra nodes
  • ContentEditable
  • Avatar

See also: vue-at

Motivation

At.js is awesome (4000+ stars), but:

  • It is buggy.
  • It seems like out of maintainment.
  • It is based on jQuery.
  • Its code is like "Spaghetti" and hard to read.

Finally I lost interest in patching it and ended up creating this.

import Editor from 'react-editor'
import At from 'react-at'
const members = ['Roxie Miles', 'grace.carroll', '小浩']

<At members={members}>
  <Editor />
</At>

<At members={members}>
  <div contentEditable />
</At>