Skip to content
LogoLogo

Plugins

A plugin adds behaviour to the Picked client. Pass one to the plugins array of createClient().

PluginImportWhat it does
Dynamic Experiences@picked/client/plugins/dynamic-experiencesReads the published configuration of your project at runtime and registers every experience, step, field, condition, and feature flag.
Create Experience@picked/client/plugins/create-experienceRegisters an experience, a step, and a field that you define in code.
Window Object@picked/client/plugins/window-objectPuts the client on window.Picked, which helps when you debug.
Single Page App@picked/client/plugins/single-page-appStarts the client again on a history event.
React framework@picked/react/plugins/frameworkLets the client render a React component.
Svelte framework@picked/svelte/plugins/frameworkLets the client render a Svelte component.
Devtools@picked/svelte/plugins/devtoolsConnects the client to the Chrome extension.

Most applications need a framework plugin and one of Dynamic Experiences or Create Experience. Dynamic Experiences puts your options in the dashboard; Create Experience puts them in code.