0.0.18 • Published 7 years ago

react-tags-editor v0.0.18

Weekly downloads
2
License
MIT
Repository
github
Last release
7 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

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago