feat(create-turbo): create basic
This commit is contained in:
14
packages/ui/turbo/generators/templates/component.hbs
Normal file
14
packages/ui/turbo/generators/templates/component.hbs
Normal file
@@ -0,0 +1,14 @@
|
||||
import * as React from "react";
|
||||
|
||||
interface Props {
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
export const {{ pascalCase name }} = ({ children }: Props) => {
|
||||
return (
|
||||
<div>
|
||||
<h1>{{ name }}</h1>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user