Answer the question
In order to leave comments, you need to log in
Routing error?
Hello, there was a problem when I write routing. It is necessary that /link
a page opens on which there are reading scripts and then another page is launched in a new window. I run through
And everything works, everything opens, but at the same time an error occurs on the page
window.open('https://newlink.ru ')
/link
Error: Objects are not valid as a React child (found: [object Window]). If you meant to render a collection of children, use an array instead.
in div (at link.js:7)
in link (created by Context.Consumer)
in Route (at FireLink.js:59)
in Router (created by BrowserRouter)
in BrowserRouter (at FireLink.js:58)
FireLink
, the routes are written like this:<BrowserRouter>
<Route path='/link' exact component={link} />
</BrowserRouter>
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