mirror of
https://github.com/Aviortheking/next-template.git
synced 2025-07-25 14:39:49 +00:00
Added Example Component and testing framework
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
20
components/HelloWorld.tsx
Normal file
20
components/HelloWorld.tsx
Normal file
@ -0,0 +1,20 @@
|
||||
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>
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user