@kurtharriger/roam-ext-shadow-cljs
v0.0.1
Published
Starter template for reagent/shadow-cljs projects
Downloads
3
Readme
Reagent / ShadowCLJS Starter
A starter template for frontend only projects using Reagent and ShadowCLJS.
Install dependencies with:
yarn install
To run dev server with hot reloading:
yarn dev
Release version:
yarn release
This package includes
- shadow-cljs - ClojureScript compilation tool.
- reagent - A ClojureScript interface to React.
- Skeleton - Super simple CSS starter styles.
Install in roam paste the following into {{[[roam/js]]}}
block
(() => {
const installScript = (src, onError) => {
var existing = document.getElementById(name);
if (existing) { existing.remove(); }
var extension = document.createElement("script");
extension.type = "text/javascript";
extension.src = src;
extension.async = true;
extension.id = name;
extension.onerror = onError;
document.getElementsByTagName("head")[0].appendChild(extension);
};
installScript('https://localhost:3739/js/main.js', (err) => {
console.log('dev build not found');
// load release
// installScript(...)
})
})()