0
나는 반응하는 앱을하려고하는데 링크를 클릭 할 때 두 번째 페이지를하고 싶지만 구성 요소를 클릭하면 다른 페이지가 아닌 링크 아래에 나타납니다. 왜 이해가 안되니?Reaction App in multipleages
render() {
return (
<Router>
<div id="tableau">
<Table compact celled >
<Table.Body>
<Table.Row>
<Link to="/sub"><Table.Cell onClick={this.test.bind(this)}>{this.props.topic.text}</Table.Cell>
<Table.Cell>{this.props.topic.arn}</Table.Cell></Link>
<Table.Cell collapsing>
<Button circular onClick={this.handleOpenModal}>S'inscrire</Button>
<ReactModal isOpen={this.state.showModal} contentLabel="Minimal Modal Example">
<button onClick={this.handleCloseModal}>Close Modal</button>
<AppInscription></AppInscription>
</ReactModal>
<Link to="/"><Button circular >Cacher</Button></Link>
<Button circular onClick={this.deleteThisTopic.bind(this)}>Suprimer</Button>
</Table.Cell>
</Table.Row>
</Table.Body>
</Table>
<Route exact path="/sub" component={AppSub}/>
</div>
</Router>