js401-reading

<Login /> and <Auth />

Auth + Role Based Auth

Proposal

// The div only shows if you are logged in
  <Auth>
    <div />
  </Auth>

// The div only shows if you are logged in AND have read permissions
  <Auth capability="read">
    <div />
  </Auth>

Resources

Articles