Internal navigation in the Clasp component can be handled in a few ways. Depending on where and what parts of the Component you want to surface to your users, this guide will walk you through how to achieve them.
You can also treat the clasp-components as a controlled component by passing a claspState variable and an onChangeState function to listen for page state changes.It’s best to opt for the Query Parameter option to leverage the browser’s native navigation system.
You can pass a function that can integrate with your routing systemThe benefit of passing a function instead of a string is to preserve the SPA feelingThe following example uses react-router