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 (
|
||||
<React.Fragment>
|
||||
<% attributes.each do |attribute| -%>
|
||||
|
|
Loading…
Reference in a new issue