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';
10
10
/// The current value of the state is available via [value] and
11
11
/// functions to update it are available via [set] and [setWithUpdater] .
12
12
///
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] .
17
17
///
18
18
/// Learn more: <https://reactjs.org/docs/hooks-state.html>.
19
19
class StateHook <T > {
@@ -104,10 +104,10 @@ StateHook<T> useStateLazy<T>(T init()) => StateHook.lazy(init);
104
104
105
105
/// Returns a memoized version of [callback] that only changes if one of the [dependencies] has changed.
106
106
///
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] .
111
111
///
112
112
/// __Example__:
113
113
///
You can’t perform that action at this time.
0 commit comments