Skip to content

Commit a7336a0

Browse files
committed
update
1 parent 27c3b95 commit a7336a0

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

HelloWorld.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ class CustomElement extends HTMLElement {
1111
mountPoint: any
1212
// componentAttributes = {}; // TODO: add example of usage
1313
// componentProperties = {}; // TODO: add example of usage
14+
constructor() {
15+
super();
1416

17+
}
1518
connectedCallback() {
1619
this.update();
1720
}

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# react-webcomponenrs-playbooks
2+
3+
Example of using React and/or wrapped as Webcomponent
4+
5+
Install [Parcel](https://parceljs.org/getting_started.html) and run
6+
7+
```
8+
npm install
9+
npm start
10+
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"start": "parcel index.html"
88
},
99
"keywords": [],
1010
"author": "",

0 commit comments

Comments
 (0)