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.
You can see the full UI implemented at any time in our demo environment:
https://demo.dynamic.xyz
You have the choice of using the all-in-one UI component (Dynamic Widget), or individual components. Note that the widget does not render the bridge widget, this must always be added separately.
You should never use the DynamicWidget and the standalone components together,
except for the Bridge Widget.
The DynamicWidget combines all three parts of the UI into one out of the box widget.The three parts of the UI which are bundled into the Widget are listed below along with their standalone components if you wish to use them separately: