Cara Mengirim Data ke Halaman Lain di Tombol React From
<Link
to={{
pathname: "/page",
data: data // your data array of objects
}}
>
//in /page
render() {
const { data } = this.props.location
return (
// render logic here
)
}
Duck Duck Go-ogle