I'd like to use some components I've created using the tag syntax...
eg. <MyComponent arg={arg_1} />
But I'm finding the docs a bit confusing on how to make this happen.
For example:
defmodule MyApp.ReadingTile do
use Mob.Component
import Mob.Sigil, only: [sigil_MOB: 2]
def render(%{label: label, value: value, unit: unit, status: status, target: target}) do
~MOB"""
"""
end
end
along with
Mob.Composite.register(
:reading_tile,
{MyApp.ReadingTile, :render}
)
doesn't work. I also get the following warning during mix compile
warning: ~MOB: <ReadingTile> is not in the Mob tag whitelist — pass-through as :reading_tile
Any and all help would be great.
I'd like to use some components I've created using the tag syntax...
eg.
<MyComponent arg={arg_1} />But I'm finding the docs a bit confusing on how to make this happen.
For example:
along with
doesn't work. I also get the following warning during
mix compileAny and all help would be great.