Skip to content

Commit

Permalink
refactor: update dev script to be more interactive
Browse files Browse the repository at this point in the history
  • Loading branch information
ftonato committed Jun 14, 2021
1 parent 35108e6 commit e0de788
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ index_html_content="<!DOCTYPE html>
<head>
<meta charset=\"utf-8\" />
<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />
<title>million - demo</title>
<link rel=\"stylesheet\" href=\"./style.css\">
<script type=\"module\" src=\"./script.tsx\"></script>
</head>
Expand All @@ -20,7 +21,10 @@ const App = (text: string) => {
const app = createElement(App('Hello World'));
document.body.appendChild(app);
patch(app, App('Goodbye World'));
setTimeout(() => {
patch(app, App('Goodbye World'));
}, 1000);
"
style_css_content="body {
font-size: 2em;
Expand Down

0 comments on commit e0de788

Please sign in to comment.