2 ms·
I was reading through Crank.js's[1] documentation the other day, and I noticed that all of its examples explicitly set the JSX createElement function with a pra
by frosted-flakes 6y ago
I was reading through Crank.js's[1] documentation the other day, and I noticed that all of its examples explicitly set the JSX createElement function with a pragma comment.
Like this:
/** @jsx createElement */
import {createElement} from "@bikeshaving/crank";
import {renderer} from "@bikeshaving/crank/dom";
renderer.render(<div id="hello">Hello world</div>, document.body);
[1]: https://crank.js.org/guides/getting-started https://crank.js.org/guides/getting-started