An open API service indexing awesome lists of open source software.

https://github.com/aaronvb/react_on_rails_materialize_modals


https://github.com/aaronvb/react_on_rails_materialize_modals

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# react_on_rails materialize modal launch example

This is an example app that shows how to launch a modal with [react_on_rails](https://github.com/shakacode/react_on_rails) and [materialize](https://github.com/mkhairi/materialize-sass).

The main part of the code is in `client/app/bundles/HelloWorld/components/HelloworldWidget.jsx`

```javascript
render() {
const { name } = this.props;
return (



Hello, {name}!









Say hello to:







Modal Class Trigger




Programmatically Launch Modal



);
}

openModal() {
$('#modal1').openModal();
}
```

## Build
- [react_on_rails](https://github.com/shakacode/react_on_rails) 2.3.0
- [materialize](https://github.com/mkhairi/materialize-sass) 0.97.5
- Ruby on Rails 4.2.5.1
- Ruby 2.2.3
- Npm 3.5.2