UNPKG

@multisynq/react-together-primereact

Version:

A set of ready-to-use PrimeReact components that are synchronized across multiple users in real-time!

21 lines (20 loc) 381 B
import { jsx as n } from "react/jsx-runtime"; import { useStateTogether as u } from "@multisynq/react-together"; import { Rating as i } from "primereact/rating"; function g({ rtKey: e, ...t }) { const [o, r] = u(e, null); return /* @__PURE__ */ n( i, { ...t, value: o || void 0, onChange: (a) => r(a.value) } ); } export { g as default };