Liveview 0.18 Phoenix.Component documentation changes

In the 0.18 documentation this paragraph, appearing at the beginning of 17.12 doc on function component disappeared:


https://hexdocs.pm/phoenix_live_view/0.17.12/Phoenix.Component.html#content
The component can be invoked as a regular function:

MyComponent.greet(%{name: "Jane"})

it is still possible to invoke the componenet as a reguar function in 0.18, but why the doc does not mention it anymore ?

does it mean that possibility will be withdrawn in the future ?

1 Like

You can, and it will always work, but it is not really a good idea to use it inside the templates, so we don’t want to promote it. :slight_smile:

3 Likes

it was for a use from inside a template but sometimes also outside a template, so without markup, but then I understand it’s better to separate things
thanks