LiveView's 0.18's Declarative Assigns
Notes
LiveView 0.18 introduced declarative assigns for components.
They allow us to define what attributes should be passed to a component, their types, defaults, and whether they’re required or not.
The best thing is that the compiler will warn us if we have a required attribute that we’re not passing into the component or if we’re passing an attribute that’s not defined in the component! 🎉