Add output type for the react:component generator
This commit is contained in:
parent
53e64234ce
commit
5cc1363a16
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ interface I<%= component_name %>Props {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function <%= component_name %>(props:I<%= component_name %>Props) {
|
function <%= component_name %>(props:I<%= component_name %>Props) : JSX.Element {
|
||||||
return (
|
return (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<% attributes.each do |attribute| -%>
|
<% attributes.each do |attribute| -%>
|
||||||
|
|
Loading…
Reference in a new issue