React Router參數傳遞this
從Header中跳轉到list傳遞數值。 利用在root.js中設置 中path="list/id:"。這個爲定義的方法 在list中用{this.props.params.id}獲取從Header路由傳遞過來的值 Header中使用 component