8000 add more examples · vuejs/rfcs@0b41928 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b41928

Browse files
committed
add more examples
1 parent ba6845d commit 0b41928

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

active-rfcs/0000-function-api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,6 +1121,8 @@ export default {
11211121

11221122
Notice how the new API cleanly organizes code by logical topic instead of options.
11231123

1124+
More examples can be found in [this gist](https://gist.github.com/yyx990803/762ec427882a61be3e4affe02f8af555).
1125+
11241126
## Comparison with React Hooks
11251127

11261128
The function based API provides the same level of logic composition capabilities as React Hooks, but with some important differences. Unlike React hooks, the `setup()` function is called only once. This means code using Vue's function APIs are:

0 commit comments

Comments
 (0)
0