import "@enadhq/enad-react-sdk/styles.css";import { EnadProvider } from "@enadhq/enad-react-sdk";import { EnadThemeProvider } from "@enadhq/enad-react-sdk/client/theme";
For grouped public barrels, documented storefront refinements, and the few retained deep exceptions, start with Import surfaces before guessing a path.
Treat everything beyond these setup imports as package-reference truth. When an agent needs a component, hook, helper, or child-part import, it should inspect package reference before writing code.
Name the job first: setup, imports, auth/account, layout, storefront, commerce, Search, or theming.
Open the matching guide before guessing an import.
If the question is import-path selection, check Import surfaces before inventing a deeper path.
Verify the exact component or helper export in package reference.
Write the smallest example that stays on documented public package imports.
If the example depends on live Search, cart, client, or auth/session wiring, keep that integration at the app boundary rather than burying it inside presentational components.
Stop and re-route before memory replaces package reference.
Common signs include inventing a component, hook, or deep import path from memory. Re-route when an agent treats prose as a prop reference, copies playground wiring into an app, mixes Search contract questions into component selection, or moves cart behavior into a product-display card because the UI surface looks convenient.
# React SDK discovery and imports
Start here when an agent needs to choose the right React SDK route, component family, or public import surface before writing code.
## Contract scope
- Use React SDK guides for route selection, component-family framing, and safe setup order.
- Use SDK package reference for exact exports, props, hooks, child parts, and helper signatures.
- Do not invent deep import paths from prose.
- Do not copy playground route internals into an app just because a playground example exists.
## Start with the documented public import surfaces
Use these confirmed setup imports directly:
```tsx
import "@enadhq/enad-react-sdk/styles.css";
import { EnadProvider } from "@enadhq/enad-react-sdk";
import { EnadThemeProvider } from "@enadhq/enad-react-sdk/client/theme";
```
For grouped public barrels, documented storefront refinements, and the few retained deep exceptions, start with [Import surfaces](/react-sdk/latest/guides/import-surfaces) before guessing a path.
Treat everything beyond these setup imports as package-reference truth. When an agent needs a component, hook, helper, or child-part import, it should inspect package reference before writing code.
## Route by job
| Job | Start here | Why |
| --- | --- | --- |
| Root setup and provider order | [React SDK setup](/react-sdk/latest/setup) | Confirms stylesheet, `EnadProvider`, and `EnadThemeProvider` placement. |
| Choose a grouped public entry point or documented exception | [Import surfaces](/react-sdk/latest/guides/import-surfaces) | Keeps root setup imports, grouped barrels, and retained deep seams clear. |
| Build login, signup, password-reset, sign-out, or current-user UI | [Account and auth UI](/react-sdk/latest/guides/account-and-auth-ui) | Keeps the public `client/user` surface aligned with runtime-adapter and Auth API boundaries. |
| Find the right component family | [React SDK components](/react-sdk/latest/components) | Groups the public docs by Base UI, Layout, Storefront, and Commerce. |
| Build shell chrome | [Storefront page guide](/react-sdk/latest/guides/storefront-page) and [Layout components](/react-sdk/latest/components/layout) | Keeps header, footer, navigation, and app-owned routing boundaries clear. |
| Build shopper-facing listing or search UI | [Product listing and search](/react-sdk/latest/guides/product-listing-search) | Separates Search GraphQL truth from React composition. |
| Build PDP or purchase-adjacent UI | [Product detail page](/react-sdk/latest/guides/product-detail-page) | Keeps display composition separate from cart and checkout side effects. |
| Apply theme hashes or component sets | [React SDK theming](/react-sdk/latest/theming) and [Theme from playground](/react-sdk/latest/guides/theme-from-playground) | Explains provider nesting, precedence, and playground handoff. |
| Feed an agent workflow | [React SDK agent guide](/ai/react-sdk/latest) | Gives route selection plus package-boundary rules. |
## Discovery workflow for agents
1. Name the job first: setup, imports, auth/account, layout, storefront, commerce, Search, or theming.
2. Open the matching guide before guessing an import.
3. If the question is import-path selection, check [Import surfaces](/react-sdk/latest/guides/import-surfaces) before inventing a deeper path.
4. Verify the exact component or helper export in package reference.
5. Write the smallest example that stays on documented public package imports.
6. If the example depends on live Search, cart, client, or auth/session wiring, keep that integration at the app boundary rather than burying it inside presentational components.
## Red flags
Stop and re-route before memory replaces package reference.
Common signs include inventing a component, hook, or deep import path from memory. Re-route when an agent treats prose as a prop reference, copies playground wiring into an app, mixes Search contract questions into component selection, or moves cart behavior into a product-display card because the UI surface looks convenient.
## Related routes
- [React SDK latest](/react-sdk/latest)
- [Import surfaces](/react-sdk/latest/guides/import-surfaces)
- [Account and auth UI](/react-sdk/latest/guides/account-and-auth-ui)
- [React SDK agent guide](/ai/react-sdk/latest)
- [React SDK theme and icons](/ai/react-sdk/latest/theme-and-icons)
- [React SDK commerce and Search handoff](/ai/react-sdk/latest/commerce-search-handoff)
- [Agent files](/ai/artifacts)