miaoda-game-objective-react
v0.3.2
Published
React bindings for objective progress and completion state.
Readme
miaoda-game-objective-react
Use this React adapter to render objective progress, timeout state, and completion from an ObjectiveSet.
pnpm add miaoda-game-objective-core miaoda-game-objective-reactconst state = useObjectiveState(objectives);
return state.objectives.map((objective) => (
<progress key={objective.id} max={objective.target} value={objective.progress} />
));Gameplay remains responsible for emitting inputs and advancing tick(dt). React observes the detached state and does not turn it into a save format.
