View components in Elixir
— React, VueJS, and etc lives in assets folder
— Phoenix LiveView in lib/yourapp_web/live
defmodule UserComponent do
use Phoenix.LiveComponent
def render(assigns) do
~L"""
<%= @user.name %>
"""
end
end
— Check out Surface!
— Does it fix the accidental complexity of controllers, views, templates,
and assets organization?