Answer the question
In order to leave comments, you need to log in
How to implement layout/views in React?
How would you implement work with layouts?
See, this is a regular AppComponent:
return (
<div className="App">
<header>
<nav>
<Link to="somewhere">Главная</Link>
</nav>
</header>
<main>
<Switch>
<Route exact path="/" component={}/>
<Route path="/somewhere" component={} />
</Switch>
</main>
</div>
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question