Web
Remix
Remix SDK reference
Installation
Simply run npm install @rownd/react
or yarn add @rownd/react
.
Setup
The library provides a React provider for the client and a higher-order function for the server.
In your app’s root.tsx
file, use the Remix Rownd provider to wrap children,
likely before other providers:
root.tsx
In your app’s entry.server.ts
file, add the Rownd handle request higher-order
function with your server’s request handler handleRequest
:
entry.server.ts
Protected component
To protect a component from being accessed by unauthenticated users, you can use
the withRowndRequireSignIn
higher-order component and the withRowndLoader
higher-order function.
API reference
Please see the React SDK for details on Rownd Client React API’s.