Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Dispatching Actions in Relay
- * our input isn't changing anymore, but we wrote the action, the action creator, the reducer, and the root reducer
- * We must now take the last step of dispatchind an aciton to redux
- * Let's go to landing.js and add a couple of things.
- ```
- import React from 'react'
- import { connect } from 'react-redux'
- import { Link } from 'react-router'
- const {string } = React.PropTypes
- const Landing = React.createClass({
- propTypes: {
- searchTerm: string
- },
- render () {
- return (
- <div className='landing'>
- <h1>svideo</h1>
- <input value={this.props.searchTerm} type='text' placeholder='Search' />
- </div>
- )
- }
- })
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement