0
我的正常反应,路由器的工作,但是当我添加PARAMS路由器则显示像未捕获的SyntaxError一些错误:意外的令牌<阵营路由器不能正常工作根PARAMS
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, Link, browserHistory, IndexRoute } from 'react-router';
import App from './containers/App';
import Greetings from './containers/Greetings';
import SignupPage from './containers/signup/SignupPage';
import Screen from './containers/signup/Screen1';
import LoginPage from './containers/login/LoginPage';
export default (
<Router history = {browserHistory}>
<Route path = "/" component = {App}>
<IndexRoute component = {SignupPage} />
<Route path = "signup" component = {SignupPage} />
<Route path = "login" component = {LoginPage} />
<Route path = "/screen/:id" component = {Screen} />
</Route>
</Router>
)
究竟你的意思是用“当我添加PARAMS路由器则显示一些错误,如...”? –