Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. ### Dispatching Actions in Relay
  2. * our input isn't changing anymore, but we wrote the action, the action creator, the reducer, and the root reducer
  3. * We must now take the last step of dispatchind an aciton to redux
  4. * Let's go to landing.js and add a couple of things.
  5. ```
  6. import React from 'react'
  7. import { connect } from 'react-redux'
  8. import { Link } from 'react-router'
  9. const {string } = React.PropTypes
  10.  
  11. const Landing = React.createClass({
  12. propTypes: {
  13. searchTerm: string
  14. },
  15. render () {
  16. return (
  17. <div className='landing'>
  18. <h1>svideo</h1>
  19. <input value={this.props.searchTerm} type='text' placeholder='Search' />
  20. </div>
  21. )
  22. }
  23. })
  24. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement