One of the most basic examples in the simplest possible HTML file isn't working for me. I just copy/pasted the HTML in the docs. (I also checked the HTML in the docs site and it's the same) It's very hard to debug this.
docs: https://hyperscript.org/docs/#basics code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Content 0</title>
<script src="https://unpkg.com/hyperscript.org@0.9.11"></script>
</head>
<body>
<h1> Content 1 </h1>
<button _="on click toggle .red on me">
Click Me
</button>
</body>
</html>
One of the most basic examples in the simplest possible HTML file isn't working for me. I just copy/pasted the HTML in the docs. (I also checked the HTML in the docs site and it's the same) It's very hard to debug this.
docs: https://hyperscript.org/docs/#basics code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Content 0</title>
<script src="https://unpkg.com/hyperscript.org@0.9.11"></script>
</head>
<body>
<h1> Content 1 </h1>
<button _="on click toggle .red on me">
Click Me
</button>
</body>
</html>