85
edits
No edit summary |
No edit summary |
||
Line 44: | Line 44: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
When you execute that chunk of code, it (re)defines a component, interfaces with Preact's prefresh package and then flushes updates, effectively performing a hot replacement of the component. And it's true, it only took about 50 lines of macro code to implement. Combine that with trident-mode to push the snippets to the frontend for evaluation, and you have a full fledged interactive hot reloading environment! I don't want to get all Reddit about it, but: | When you execute that chunk of code, it (re)defines a component, interfaces with Preact's prefresh package and then flushes updates, effectively performing a hot replacement of the component. | ||
[[File:Lisp-preact.mp4]] | |||
And it's true, it only took about 50 lines of macro code to implement. Combine that with trident-mode to push the snippets to the frontend for evaluation, and you have a full fledged interactive hot reloading environment! I don't want to get all Reddit about it, but: | |||
[[File:8q5nqk.jpg]] | [[File:8q5nqk.jpg]] |