Skip to content

Commit f772429

Browse files
committed
feat: simplify usage of Head
1 parent cafed5b commit f772429

File tree

5 files changed

+5639
-3
lines changed

5 files changed

+5639
-3
lines changed

examples/head-elements/package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"dev": "smooth dev",
5+
"build": "smooth build",
6+
"start": "smooth start"
7+
},
8+
"dependencies": {
9+
"react": "^16.7.0",
10+
"react-dom": "^16.7.0",
11+
"smooth-core": "^0.1.1-alpha.8"
12+
}
13+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react'
2+
import Head from 'smooth-core/head'
3+
4+
export default () => (
5+
<>
6+
<Head>
7+
<title>My awesome page</title>
8+
</Head>
9+
Hello world!
10+
</>
11+
)

0 commit comments

Comments
 (0)