File tree 5 files changed +18
-21
lines changed
5 files changed +18
-21
lines changed Original file line number Diff line number Diff line change 2
2
< html lang ="en ">
3
3
< title > Parcel Sandbox</ title >
4
4
< meta charset ="UTF-8 " />
5
+ < link rel ="stylesheet " href ="./src/style.css ">
5
6
6
7
< h1 > 🧛🏻♂️ Haunted App 🎃</ h1 >
7
8
< my-app > </ my-app >
8
9
9
- < script src ="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/2.2.4/custom-elements-es5-adapter.js ">
10
- </ script >
11
- < script src ="src/index.js ">
12
-
13
- </ script >
10
+ < script type ="module " src ="src/index.js "> </ script >
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"description" : " A project for creating apps with Haunted and lit-html." ,
5
5
"main" : " index.html" ,
6
- "scripts" : {
7
- "start" : " parcel index.html --open" ,
8
- "build" : " parcel build index.html"
9
- },
6
+ "scripts" : {},
10
7
"dependencies" : {
11
- "haunted" : " ^4.1.2" ,
12
- "lit-html" : " ^1.0.0"
13
- },
14
- "devDependencies" : {
15
- "parcel-bundler" : " ^1.6.1"
8
+ "haunted" : " 4.5.1" ,
9
+ "lit-html" : " 1.1.1"
16
10
},
17
11
"keywords" : [" web-components" , " lit-html" ]
18
12
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"infiniteLoopProtection" : true ,
3
3
"hardReloadOnChange" : true ,
4
- "view" : " browser"
5
- }
4
+ "view" : " browser" ,
5
+ "template" : " static"
6
+ }
Original file line number Diff line number Diff line change 1
- import { component , useState } from "haunted" ;
2
- import { html } from "lit-html" ;
1
+ import {
2
+ component ,
3
+ html ,
4
+ useState
5
+ } from "https://unpkg.com/haunted/haunted.js" ;
3
6
4
7
function dispatch ( el , first , last ) {
5
8
let event = new CustomEvent ( "change" , {
Original file line number Diff line number Diff line change 1
- import { component , useState , html } from "haunted" ;
2
-
1
+ import {
2
+ component ,
3
+ useState ,
4
+ html
5
+ } from "https://unpkg.com/haunted/haunted.js" ;
3
6
import "./FullName.js" ;
4
- import "./style.css" ;
5
7
6
8
function App ( ) {
7
9
const [ name , setName ] = useState ( "" ) ;
You can’t perform that action at this time.
0 commit comments