Skip to content

Commit 57889d5

Browse files
LeoYuanJackLian
authored andcommitted
fix: use noop function instead
1 parent 4db1971 commit 57889d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • modules/code-generator/src/plugins/component/react

modules/code-generator/src/plugins/component/react/jsx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const pluginFactory: BuilderComponentPluginFactory<PluginConfig> = (config?) =>
5858
generateCompositeType(
5959
{
6060
type: 'JSFunction',
61-
value: input.value || 'null',
61+
value: input.value || 'function () {}',
6262
},
6363
Scope.createRootScope(),
6464
),

0 commit comments

Comments
 (0)