Skip to content

Instantly share code, notes, and snippets.

@galihlprakoso
Last active March 22, 2019 06:07
Show Gist options
  • Save galihlprakoso/a6a872de43616a4b24b0aae49ca269d3 to your computer and use it in GitHub Desktop.
Save galihlprakoso/a6a872de43616a4b24b0aae49ca269d3 to your computer and use it in GitHub Desktop.
import React, { Component } from 'react'
import TagsInput from 'reactjs-tags-input'
class SomeParentComponent extends Component {
state = {
tags: []
}
render() {
const { tags } = this.state
return (
<div>
<TagsInput
tags={tags}
placeholder="Input your tags separated with comma"
/>
</div>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment