Skip to content

Add support to the element property

Compare
Choose a tag to compare
@UpperCod UpperCod released this 24 Mar 22:01
· 38 commits to master since this release

RouterCase.element

This new property allows defining a customElement to mount at the time of the match, example:

<RouterSwitch>
        <RouterCase path="/" element={MyHome} />
        <RouterCase path="/login" element="my-login" />
</RouterSwitch>

Fix

  1. load executes correctly, without the need to define memo