0.0.18 • Published 8 years ago

react-tags-editor v0.0.18

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

react-tags-editor

MIT NPM Version

React-Tags-Editor that works out of the box

How to install

npm install react-tags-editor --save

How to use

  1. Simply add ReactTagsEditor component to use.
  2. Add ref to the component to get the current tags using getTags()
import React, {Component} from 'react'
import {render} from 'react-dom'
import TagsEditor from 'react-tags-editor'

class App extends Component {
  render () { 
    return (
      <div>
        <h1>React Tags Editor</h1>
        <TagsEditor ref={c => { this.tagsEditor = c; }}/>
        <button onClick={() => alert(this.tagsEditor.getTags())}>
          Get Tags
        </button>
      </div>
    )
  }
}

render(<App />, document.querySelector('#app'))
0.0.18

8 years ago

0.0.17

8 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago