React Slug
Install
npm install react-slug
Example
It acts exactly the same as a regular input, the onChange will return the event as a second parameter.
Component { super thishandleChange = thishandleChange } { console } { return <Slug value="this will be stringified" onChange=thishandleChange className="test" /> }
Rebuilding
Run this to view the example in example/dist
npm run build
Description
This is a super simple react component that will strip any non alpha-numeric characters for you. It will turn spaces into hyphens. Thanks to Jed Watson for the gulpfile stuff ;)