Nothing to it...
npm add replicache replicache-react-util
... well, almost nothing.
Replicache uses Wasm internally. Most bundlers don't deal with this well yet, so it's easiest to just serve it as a static asset.
Copy the Replicache Wasm module to your static assets directory:
cp node_modules/replicache/out/*.wasm public/