295 karma · joined December 11, 2019
Brisa to other frameworks (or Vanilla.js): https://aralroca.com/blog/reactive-web-components-with-ssr
React to Brisa: https://brisa.build/building-your-application/components-det...
If there are proposals on how to improve this, we are open to you to write them on GitHub and we will take them into account:
https://github.com/brisa-build/brisa/tree/main/examples/with...
In build-time, each server action is converted to an API entry point.
1. Prerender your pages have them static on a CDN and have them interact with your server (Laravel, etc).
2. Use the server actions or API endpoints as a Backend for Frontend to communicate with your other server.
https://github.com/brisa-build/brisa/blob/2e14f765f425c129a6...
However, is possible to change any response header including this one:
https://brisa.build/building-your-application/routing/pages-...
Other than this. We don't like to use cache, because a framework needing cache is a sign of a patch to cover a problem. We are fast by nature, we invite you to try it and you will see that the server takes 4-5ms to render.
However, an important part for the 1.0 routing is to do a lot of optimizations that we already have in mind.
By rule, reactivity is broken if you declare a variable using the getter (.value) outside the JSX. This is because the component is called once, and during the rendering of the DOM elements, effect wrappers are added to register the getters (.value) of any signals.
However, to make life easier for developers, we make some optimizations in build time, to:
1. Support early returns.
2. Not having to use .value in the props (well, “WC attributes”) and being able to define default values, do destructuring, etc. without losing reactivity.
Apart from these exceptions, it is as I said at the beginning.
Website: https://brisa.build GitHub: https://brisa.com/github Discord: https://brisa.build/discord X (formally Twitter): https://brisa.build/x
https://aralroca.com/blog/do-all-roads-lead-to-rome
Hope it can be helpful to someone
By the way, here is the GitHub repo: https://github.com/aralroca/labelai
* https://marketplace.visualstudio.com/items?itemName=axetroy....