File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ import 'package:react/react_client/react_interop.dart';
1010/// The current value of the state is available via [value] and
1111/// functions to update it are available via [set] and [setWithUpdater] .
1212///
13- /// Note there are two rules for using Hooks (< https://reactjs.org/docs/hooks-rules.html> ):
14- ///
15- /// * Only call Hooks at the top level.
16- /// * Only call Hooks from inside a [DartFunctionComponent] .
13+ /// > __Note:__ there are two [ rules for using Hooks] ( https://reactjs.org/docs/hooks-rules.html):
14+ /// >
15+ /// > * Only call Hooks at the top level.
16+ /// > * Only call Hooks from inside a [DartFunctionComponent] .
1717///
1818/// Learn more: <https://reactjs.org/docs/hooks-state.html>.
1919class StateHook <T > {
@@ -104,10 +104,10 @@ StateHook<T> useStateLazy<T>(T init()) => StateHook.lazy(init);
104104
105105/// Returns a memoized version of [callback] that only changes if one of the [dependencies] has changed.
106106///
107- /// Note there are two rules for using Hooks (< https://reactjs.org/docs/hooks-rules.html> ):
108- ///
109- /// * Only call Hooks at the top level.
110- /// * Only call Hooks from inside a [DartFunctionComponent] .
107+ /// > __Note:__ there are two [ rules for using Hooks] ( https://reactjs.org/docs/hooks-rules.html):
108+ /// >
109+ /// > * Only call Hooks at the top level.
110+ /// > * Only call Hooks from inside a [DartFunctionComponent] .
111111///
112112/// __Example__:
113113///
You can’t perform that action at this time.
0 commit comments