On a button click a new window should be opened and on that window I'm trying to display a separate JSX component. Kinda like flipping to the next page on a book. I have searched for hours only finding antiquated answer's. I just need some guidance any help is appreciated. Below is the code:
onClick() {
window.open()
}
EDIT: I am working in visual studio code and testing my create-react-app on port 3000.
EDIT: My question is very similar to this