Skip to content

Commit 5611b8b

Browse files
committed
docs: update behavior difference
1 parent 404d810 commit 5611b8b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,10 @@ Check out the [examples directory](https://github.com/vuejs/petite-vue/tree/main
310310

311311
### Has Different Behavior
312312

313-
- Most expressions (except for structural directives like `v-if` and `v-for`) has access to the following magic properties:
314-
- `$el`
315-
- `$nextTick`
316-
- `createApp()` (accepts global state instead of root component)
317-
- Components
318-
- Custom directives
313+
- In expressions, `$el` points to the current element the directive is bound to (instead of component root element)
314+
- `createApp()` accepts global state instead of a component
315+
- Components are simplified into object-returning functions
316+
- Custom directives have a different interface
319317

320318
### Vue Compatible
321319

@@ -385,4 +383,4 @@ This is also how Vue 1 worked. The trade-off here is that this approach is coupl
385383

386384
## License
387385

388-
MIT
386+
MIT

0 commit comments

Comments
 (0)