Missing the Elixir Slack community? Join the new Elixir Discord! Building a full-text search engine in Elixir

Better function component tests with ~H

There are 2 ways to test Phoenix function components:

  • render_component/3
  • rendered_to_string/1 + ~H sigil

Use the second one every time!

So much nicer ergonomics ✨and allows us to test more complex components (e.g. with slots). 🎉

👉 https://youtube.com/shorts/wISozZC5kk4 👀