1

I want to open my Form Builder preview in a new window on button click.

I used the local storage method. I mean I stored the state in local storage then push to the new route and retrieve it. But I am not convinced about the method.

Currently, my props.history.push() is like this

props.history.push({
  pathname: '/client/response',
  state: 'My Data objects are passed here',
})

What I want is, when I execute this line. it should open my next route in a new tab. I can't use Link from react-router-dom. Because the state I am passing needs some preparation.

If it opens in a new window no problem at all.

moshfiqrony
  • 4,303
  • 2
  • 20
  • 29

0 Answers0