tylerbarker.com
You’ll usually need to tidy up the resulting MD, but still.
You’ll usually need to tidy up the resulting MD, but still.
After you init signals in the component fn, setup your handleEvents with the hook obj to interact with LV, and fire any pushEvents to get initial data from LV before returning your HTML (Solid component fns run once).
After you init signals in the component fn, setup your handleEvents with the hook obj to interact with LV, and fire any pushEvents to get initial data from LV before returning your HTML (Solid component fns run once).
- Multiple instances of a JS hook can share state if you return the hook object from a function and manage state in the closure.
- Multiple instances of a JS hook can share state if you return the hook object from a function and manage state in the closure.
- I often write hooks in a TSX file alongside Solid.js when I need it, it's very simple to render from mounted().
- I often write hooks in a TSX file alongside Solid.js when I need it, it's very simple to render from mounted().
- Phoenix esbuild is great, but I much prefer the control I get from ejecting from that to a build.js file.
- JS hooks can get you really, really far.
- Phoenix esbuild is great, but I much prefer the control I get from ejecting from that to a build.js file.
- JS hooks can get you really, really far.