Plugins
A plugin adds behaviour to the Picked client. Pass one to the plugins array of
createClient().
| Plugin | Import | What it does |
|---|---|---|
| Dynamic Experiences | @picked/client/plugins/dynamic-experiences | Reads the published configuration of your project at runtime and registers every experience, step, field, condition, and feature flag. |
| Create Experience | @picked/client/plugins/create-experience | Registers an experience, a step, and a field that you define in code. |
| Window Object | @picked/client/plugins/window-object | Puts the client on window.Picked, which helps when you debug. |
| Single Page App | @picked/client/plugins/single-page-app | Starts the client again on a history event. |
| React framework | @picked/react/plugins/framework | Lets the client render a React component. |
| Svelte framework | @picked/svelte/plugins/framework | Lets the client render a Svelte component. |
| Devtools | @picked/svelte/plugins/devtools | Connects 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.
Related
- How to install the SDK — where the plugins go.
- SDK installation — every client option.
- How to debug with the Chrome extension
