Proper way to wrap <ReactErrorBoundary> Component in F7 Page?

What should be the best way to use ReactErrorBoundary component in Framework7 Page component?

This?

<Page>
  <ReactErrorBoundary>
      <>...other elements...</>
  </ReactErrorBoundary>
</Page>

or this?

<ReactErrorBoundary>
   <Page>
      <>...other elements...</>
   </Page>
</ReactErrorBoundary>

Which is better? Or any better way?

Because I don’t want to lose F7 optimizations, caching and other facilities!