Skip to content

Commit 7adbc2a

Browse files
Update based on reviewer feedback
1 parent 8da4aaf commit 7adbc2a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/hooks.dart

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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>.
1919
class 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
///

0 commit comments

Comments
 (0)