title: Handling 404 pages(404page components appearing every pages)
body: <pre><code>      &lt;Route path="/shop"&gt;
         &lt;Shop&gt; &lt;/Shop&gt;
        &lt;/Route&gt;
  
        &lt;Route path="*"&gt;
          &lt;NotFound&gt;&lt;/NotFound&gt;
        &lt;/Route&gt;
  
        &lt;Route path="/review"&gt; 
         &lt;Review&gt; &lt;/Review&gt;
        &lt;/Route&gt;
  </code></pre>
  
  <p>In NotFound page i have written a error message. And in (shop and review) i'm adding different messages.But all the pages are including the message from not found pages. How to solve this?<a href="https://i.stack.imgur.com/0gA5r.png" rel="nofollow noreferrer">enter image description here</a></p>