Looz_Dreemur

Untitled

Jun 18th, 2021
799
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Home page here, it needs exact because I only wanted the home page to show ONLY IF user is on facebook.com
  2. <Route path="/" exact render={() => <HomePage />} />
  3.  
  4. // User page
  5. // Accepts 1 parameter, userAccountName
  6. // We do not use exact here because we want to generically generate user page
  7. // Using exact will destroy the purpose of this generic page
  8. <Route path="/:userAccountName" render={() => <GenericUserAccountPage />}/>
RAW Paste Data