<div className="app">
<Router>
<Link
to="/dashboard"
style={{ width: "25rem", marginLeft: "50px", marginTop: "50px" }}>
Passing Props
</Link>
<Link
to="/"
style={{ width: "25rem", marginLeft: "50px", marginTop: "50px" }}>
Home
</Link>
<Link
to="/signin"
style={{ width: "25rem", marginLeft: "50px", marginTop: "50px" }}>
signin
</Link>
<Link
to="/signup"
style={{ width: "25rem", marginLeft: "50px", marginTop: "50px" }}
>
signup
</Link>
<Switch>
<Route
path="/dashboard"
component={() => <AWSConnection topic={this.state.topic} />}
/>
<Route path="/" />
<Route path="/signup" component={SignInForm}/>
<Route path="/signin" component={SignUpForm}/>
</Switch>
</Router>
</div>
only Home and dashboard are working the other two are not showing anything
my imports are
import {BrowserRouter as Router, Route, Link, Switch} from 'react-router-dom'
when i click Home it goes to home and when i click dashboard it goes to dashboard but when i click signin or signup nothing happens. i see url change to/signin and /singup but nothing displayed. i tested with a dummpy component insteat of signin and singup still the same it cant load the dummpy component