next-template/components/HelloWorld.tsx
Florian Bouillon f5cdda822c
Added Example Component and testing framework
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
2020-03-31 11:14:25 +02:00

21 lines
291 B
TypeScript

import React from 'react'
interface Props {
children: React.ReactNode
}
export default class HelloWorld extends React.Component<Props> {
public render() {
return (
<>
<h1>{this.props.children}</h1>
<style jsx>{`
h1
font-weight 700
`}</style>
</>
)
}
}