Building with Parenscript and Preact: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 46: Line 46:
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.
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]]
[[File:Lisp-preact.mp4|1000px]]


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:
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:

Navigation menu