Initial commit from Create Next App
This commit is contained in:
16
components/TestComponent.js
Normal file
16
components/TestComponent.js
Normal file
@@ -0,0 +1,16 @@
|
||||
export default function TestComponent({ name = 'world' }) {
|
||||
return (
|
||||
<>
|
||||
<div>Hello, {name}!</div>
|
||||
<style jsx>{`
|
||||
div {
|
||||
background-color: #111;
|
||||
border-radius: 0.5em;
|
||||
color: #fff;
|
||||
margin-bottom: 1.5em;
|
||||
padding: 0.5em 0.75em;
|
||||
}
|
||||
`}</style>
|
||||
</>
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user