Safari reporting “Unexpected token 'const' ” when I open my React App
问题 I have problem with my React App opening in Safari and especially my private routing.Error: SyntaxError: Unexpected token 'const' I have ordinary rooting function: function App() { return ( <Router history={history}> <Switch> <Route path="/" exact component={Home} /> <Route path="/login" component={Login} /> <PrivateRoute path="/dash" component={Dashboard} /> <PrivateRoute path="/filters" component={Filters} /> <PrivateRoute path="/profile" component={Profile} /> <PrivateRoute path="/map"