diff --git a/src/content/docs/useform.mdx b/src/content/docs/useform.mdx index 5ad2aff52..7999930bf 100644 --- a/src/content/docs/useform.mdx +++ b/src/content/docs/useform.mdx @@ -494,10 +494,12 @@ const App = () => { }) return ( -
This function is intended for subscribing to changes only; dispatching state updates or triggering re-renders is not allowed. eg `setValue` or `reset`
+ This function is intended for subscribing to changes only; dispatching + state updates or triggering re-renders is not allowed. eg `setValue` or + `reset` +
@@ -64,14 +68,14 @@ export default function App() { // make sure to unsubscribe; const callback = subscribe({ formState: { - values: true + values: true, }, callback: ({ values }) => { - console.log(values); - } + console.log(values) + }, }) - return () => callback(); + return () => callback() // You can also just return the subscribe // return subscribe();
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル