Skip to content

Instantly share code, notes, and snippets.

@timcase
Created July 27, 2016 19:35
Show Gist options
  • Save timcase/99b7da37191f05f85757329228ab0975 to your computer and use it in GitHub Desktop.
Save timcase/99b7da37191f05f85757329228ab0975 to your computer and use it in GitHub Desktop.
NPM integration example
SweetAlert = require('react-swal')
AlertComponent = React.createClass
render: ->
<SweetAlert isOpen={true} type="warning" confirmButtonText="Yup"
cancelButtonText="Nope"/>
module.exports = AlertComponent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment