Class: ReactExampleController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ReactExampleController
- Defined in:
- lib/react_rails_webpack/app/controllers/react_example_controller.rb
Instance Method Summary collapse
Instance Method Details
#greeting ⇒ Object
2 3 4 5 |
# File 'lib/react_rails_webpack/app/controllers/react_example_controller.rb', line 2 def greeting @props_for_hello_component = { details: 'My initial greeting was set with getInitialState in the client/src/components/Hello.jsx file.' } @props_for_hello_with_redux_component = { details: 'My initial greeting was set with initialState in the client/src/redux/reducer.js file.' } end |