12/30/2023 0 Comments Elixir phoenix liveview![]() ![]() ![]() I’d like to thank and the Phoenix Core Team for buying the idea of reusable components and bringing the necessary basic concepts to the core API. Bear in mind that the LiveView Component API has not reached a stable version yet and it’s currently under development, so although we try to keep track of the latest changes as much as possible, there might be temporary incompatibilities between Surface and Phoenix LiveView until a final version is released. There’s still a lot of work to do and I hope some of you out there might be willing to help me in this journey. Installation instructions and other useful information can be found at /msaraiva/surface.Īnd finally, a VS Code extension that adds support for syntax highlighting is also available at Integration with editor/tools for warnings, syntax highlighting, jump-to-definition, auto-completion and moreĪ work-in-progress live demo with more details is available at.Compile-time checking of components and their properties.Contexts - allows parent components to share data with its children without passing them as properties.An HTML-centric templating language with built-in directives ( :for, :if, …) and syntactic sugar for attributes (inspired by Vue.js).Declarative properties - explicitly declare the inputs (properties) of each component (like React).Components as modules - they can be stateless, stateful, data-only or compile-time.Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative way to express and use components in Phoenix. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |