fix(challenges/xeact): make a UI render without JS

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-08-29 19:34:06 +00:00
parent b794fe00f3
commit f89322f2df
3 changed files with 51 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
import { render, h, Fragment } from 'preact';
import { useState, useEffect } from 'preact/hooks';
import { g, j, u } from "./xeact.js";
import { g, j, u, x } from "./xeact.js";
import { Sha256 } from '@aws-crypto/sha256-js';
/** @jsx h */
@@ -58,4 +58,5 @@ const App = () => {
);
};
x(g("app"));
render(<App />, g("app"));