We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
remove-trivial-render
1 parent 38a2256 commit 40abe93Copy full SHA for 40abe93
generator/codemods/global-api/remove-trivial-root.js
@@ -2,6 +2,9 @@
2
* It is expected to be run after the `createApp` transformataion
3
* if a root component is trivial, that is, it contains only one simple option,
4
* 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`
8
* @param {Object} context
9
* @param {import('jscodeshift').JSCodeshift} context.j
10
* @param {ReturnType<import('jscodeshift').Core>} context.root
0 commit comments