You forgot to
attribute. Try this:
<Link
to={{
pathname: '/search-results',
state: {
jobKeyword: this.state.jobKeyword, jobLocation: this.state.jobLocation
}
}}
/>
You cannot do something like this in React:
<Component {obj} />
You need to assign that object to an attribute:
<Component p={obj} />
Or you can destruct the object(attributes):
<Component ...{{name:'foo', lastName: 'bar'}} />
Which translates to:
<Component name='foo' lastName='bar' />
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…