Build the app-facing side of a Runtime Kit feature: one React surface reads named data, renders every state, and asks a named target to do work from a button.
Named data means Runtime Kit has already made a piece of Bitfield data available to this app surface. The component reads it. It does not create storage addresses or parse package files.When to use this
Use this recipe when a screen needs both data and an action.The point is the separation: the component owns UI state and user actions. Runtime Kit owns the public read/request line. The package owns the material served through that line.
What you will build
Component
Read path
The read line is:The selector is not a storage path. The component does not import the package record, file, or derived value that produced the data name.
Request path
The request line is:The component does not import the target implementation.
Verify the recipe
Use this checklist before copying the surface into a real app:What should happen
Bad version
This version looks shorter, but it hides real states and crosses the boundary later:Common failures
Review checklist
The finished surface should answer:Why the component stays small
The component has two jobs:- Read the prepared
welcomedata. - Ask
product.searchto do work.
What changes when the package changes
The package can add more records, ship more bytes, or replace the implementation forproduct.search. The component can stay the same as long as the public data shape and action name stay the same.Next
Read Read data in React for the hook contract.Read Send a request for payload conversion, reply bytes, cancellation, and request errors.Read Runtime Kit API for exactuseBitfieldData(...) and sendRequestToBitfieldTarget(...) contracts.Read Package to screen for the full package-to-surface path.