Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readMe to show how to use #28

Open
gauravChaturvedi opened this issue Aug 10, 2016 · 2 comments
Open

Update readMe to show how to use #28

gauravChaturvedi opened this issue Aug 10, 2016 · 2 comments

Comments

@gauravChaturvedi
Copy link

Unable to use this module post npm install.. had a look at your example in the repo but its difficult to get it right.

Could you please update the readMe so that anyone installing this module on their project knows how to quickly get this awesome component up and running ?

@josh-endries
Copy link

josh-endries commented Aug 26, 2016

👍

@alveshelio
Copy link

Same thing here, I've tried to use this component in React with Meteor and the code does not work. I've changed a bit the code because I'm not using React.createClass({}), I'm using class ComponentName extends Component {}, so instead of using
handleRemove: function(value) {}, I'm using handleRemove(value) {}

I've tried to import TokenInput and ComboboxOption with the following options:
import { TokenInput, ComboboxOption } from 'react-tokeninput';
import TokenInput, { ComboboxOption } from 'react-tokeninput';

import TokenInput from 'react-tokeninput';
import ComboboxOption from 'react-tokeninput';

But I'm always getting warnings and error:
Warning: Failed prop type: The prop onSelect is marked as required in exports, but its value is undefined.
The same warning for a bunch of other event types

Uncaught TypeError: Cannot read property 'map' of undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants