I new to razzle, when I install it and start it I get following warning in console? How i solve them?
require("react-router-dom").Route instead of require("react-router-dom/Route"). Support for the latter will be removed in the next major release.require("react-router-dom").Switch instead of require("react-router-dom/Switch"). Support for the latter will be removed in the next major release.require("react-router-dom").BrowserRouter instead of require("react-router-dom/BrowserRouter"). Support for the latter will be removed in the next major release.in template need change in client.js
import BrowserRouter from 'react-router-dom/BrowserRouter';
import {BrowserRouter} from 'react-router-dom';
and in App.js
import Route from 'react-router-dom/Route';
import Switch from 'react-router-dom/Switch';
to
import {Route,Switch} from 'react-router-dom';
thanks!
Most helpful comment
in template need change in client.js
to
and in App.js
to