Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

@reactor/client — createclient

@reactor/client


@reactor/client / createClient

createClient<Schema>(url, options?): ReactorClient<Schema>

Defined in: index.ts:108

Create a Reactor client.

Schema extends GenericSchema = GenericSchema

string

The Reactor API URL (e.g., ‘https://reactor.cloud’)

ReactorClientOptions = {}

Client configuration options

ReactorClient<Schema>

A configured Reactor client

import { createClient } from '@reactor/client';
const reactor = createClient('https://reactor.cloud', {
key: 'rk_pub_...',
});