Skip to main content

Recommended: JavaScript SDK with React Hooks

For new React apps, we recommend the JavaScript SDK with React Hooks (@dynamic-labs-sdk/react-hooks) instead of the legacy React SDK documented here. The JS SDK comes with many benefits such as a much smaller bundle size and other optimizations. Use the React quickstart (JavaScript SDK) to get started.
Dynamic offers many different custom React hooks for different tasks within your code. You can import them directly from the @dynamic-labs/sdk-react-core package, for example:
import { useDynamicContext } from '@dynamic-labs/sdk-react-core'
We’ve grouped the hooks into the following categories: The most important hook is useDynamicContext which gives you access to the full context which is initially set via the DynamicContextProvider component, so we’ve kept that separate.
Last modified on June 25, 2026