Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit40abe93

Browse files
committed
chore: add todo forremove-trivial-render
1 parent38a2256 commit40abe93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp