Add output type for the react:component generator

This commit is contained in:
Eric 2020-06-30 14:45:07 -05:00 committed by Eric Schultz
parent 53e64234ce
commit 5cc1363a16

View file

@ -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| -%>