Answer the question
In order to leave comments, you need to log in
Passing info props?
Good afternoon, how to transfer information to the next screen.
There are news output:
<Link style={{textDecoration: 'none'}} to={{pathname: '/New', params: { id: this.props.id, title: this.props.title, image: this.props.image, announce: this.props.announce, description:this.props.description } }}>
<div className='ItemNews' style={{ backgroundImage:"url(" + this.props.image + ")", width: '100%', backgroundPosition: 'center' }} key={this.props.id}>
<div className="ItemNewsTitle">
{this.props.title}
</div>
</div>
</Link>
params: { id: this.props.id, title: this.props.title, image: this.props.image, announce: this.props.announce, description:this.props.description }
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question