The react routing

Basic use of routing

  1. Clear the navigation area and display area on the interface
  2. Change the a label in the navigation area to Link label Demo\
  3. The outermost part of

    wraps a

    or


Routing components versus generic components

  • 1. Different ways of writing:
    • General components :
  • 2. Different storage locations:
    • General components: Components
    • Routing component: Pages
  • 3. The props received are different:
    • General components: What do I receive when I write component labels to pass

    • Routing component: Receives three fixed properties

The commonly used: