Compose with providers and hooks

Use public subpaths when the default panel does not fit the host product.

Tip

Help me follow the Compose with providers and hooks guide. Use public subpaths when the default panel does not fit the host product. Review the current project and turn this guidance into concrete next steps.

Public subpaths

importPurpose
@fivepixels-js/reactFivePixels, types, utilities
@fivepixels-js/react/reportProvider, hooks, custom composition
@fivepixels-js/react/demoDemo runtime

Hook partitions

HookPurpose
useReport()Full backward-compatible API
useReportPreferences()appearance, locale, role, messages
useReportSession()mode, draft, markers, composers
useReportData()lists, filters, CRUD, stats, replies