1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-31 02:30:13 +02:00
Files
php-web-maker/app/templates/template-preact.json
Kushagra Gour 72b2dcca21 build 3.4.0
2018-07-31 03:04:50 +05:30

17 lines
661 B
JSON

{
"title": "Preact template",
"externalLibs": {
"js": "\nhttps://cdnjs.cloudflare.com/ajax/libs/preact/8.2.9/preact.min.js",
"css": ""
},
"sizes": ["calc(30% - 3px)", "30px", "calc(70% - 3px)"],
"mainSizes": [68.1051, 31.6949],
"htmlMode": "html",
"cssMode": "css",
"jsMode": "es6",
"layoutMode": 1,
"js":
"\nconst { h, Component, render, createElement } = window.preact;\nconst React = {createElement}\n\nclass App extends Component {\n constructor() {\n super();\n this.message = 'World';\n }\n render() {\n return (<div>Hello {this.message}</div>)\n }\n}\nrender(<App/>, window.root)\n\n",
"html": "<div id=\"root\"></div>\n"
}