Skip to content

Commit 40abe93

Browse files
committed
chore: add todo for remove-trivial-render
1 parent 38a2256 commit 40abe93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

generator/codemods/global-api/remove-trivial-root.js

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* It is expected to be run after the `createApp` transformataion
33
* if a root component is trivial, that is, it contains only one simple option,
44
* like `{ render: h => h(App) }`, then just use the `App` variable
5+
*
6+
* TODO: implement `remove-trivial-render`,
7+
* move all other rootProps to the second argument of `createApp`
58
* @param {Object} context
69
* @param {import('jscodeshift').JSCodeshift} context.j
710
* @param {ReturnType<import('jscodeshift').Core>} context.root

0 commit comments

Comments
 (0)