Skip to content

Instantly share code, notes, and snippets.

@thatgibbyguy
Last active March 6, 2016 16:32
Show Gist options
  • Save thatgibbyguy/6c8ac9611784f19d3212 to your computer and use it in GitHub Desktop.
Save thatgibbyguy/6c8ac9611784f19d3212 to your computer and use it in GitHub Desktop.
slugifyComponentStart
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