SolidJS + Built-in
Shared store using the framework's own reactivity (runes / signals); no package. This page shows exactly what pickstack adds to a SolidJS project for Built-in: the packages, the new files and the changes to existing ones. Every combination is installed, built, linted and tested in CI.
$ npm create pickstack@latest my-app -- --framework solid --modules builtin --yesCustomize in the configurator
New files
import { createSignal } from "solid-js";
const [count, setCount] = createSignal(0);
export { count };
export function increment() {
setCount((value) => value + 1);
}
export function decrement() {
setCount((value) => value - 1);
}
Changes to existing files
+import { count, decrement, increment } from "../stores/counter";−import { createSignal } from "solid-js"; export default function Counter() {− const [count, setCount] = createSignal(0);− return ( <div class="card"> <p class="count">{count()}</p> <div class="row">+ <button type="button" class="btn" onClick={decrement}>− <button− type="button"− class="btn"− onClick={() => setCount((value) => value - 1)}− > -1 </button>+ <button type="button" class="btn" onClick={increment}>− <button− type="button"− class="btn"− onClick={() => setCount((value) => value + 1)}− > +1 </button> </div>⋯ 4 unchanged lines
Project files
.gitignoreREADME.mdindex.htmlpackage.jsonsrc/App.tsxsrc/components/Counter.tsxsrc/index.csssrc/index.tsxsrc/stores/counter.tstsconfig.app.jsontsconfig.jsontsconfig.node.jsonvite.config.ts