write data in props.histroy.push in react component code example
Example: write data in props.histroy.push in react component
history.push({pathname:"/yourroute",state: {_id: "0001", name: "AZ"}})
history.push({pathname:"/yourroute",state: {_id: "0001", name: "AZ"}})