Last active
March 6, 2016 16:32
-
-
Save thatgibbyguy/6c8ac9611784f19d3212 to your computer and use it in GitHub Desktop.
slugifyComponentStart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import slugify from 'slugify'; | |
export default React.createClass({ | |
getInitialState() { | |
return { | |
slugifiedString: null, | |
textValue: null | |
} | |
}, | |
render() { | |
return ( | |
<form className="forms forms-inline"> | |
<input type="text" | |
className="width-50" | |
placeholder='' /> | |
<button className="btn">Slugify This String</button> | |
</form> | |
); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment