Answer the question
In order to leave comments, you need to log in
How to display a component by URL?
There is one div block where the information changes depending on the URL link.
<div className="feed">
<Route path="/Contact">
<Contact firstWord="Contact" secndWord="Form" />
</Route>
<Route path="/" component = {About}>
</Route>
</div>
<Route path="/Contact">
<Contact firstWord="Contact" secndWord="Form" />
</Route>
<Route path="/Contact" component={ <Contact firstWord="Contact" secndWord="Form"></Contact> } ></Route>
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