# What's wrong with using Html.map?

**URL:** <https://discourse.elm-lang.org/t/whats-wrong-with-using-html-map/8105>\
**Category:** Learn\
**Created:** [January 25, 2022, 5:15pm UTC](https://discourse.elm-lang.org/t/whats-wrong-with-using-html-map/8105 "2022-01-25T17:15:55Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![rupert](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/rupert/32/1775_2.png) [@rupert](https://discourse.elm-lang.org/u/rupert)\
**Post date:** [January 29, 2022, 5:41pm UTC](https://discourse.elm-lang.org/t/whats-wrong-with-using-html-map/8105/11 "2022-01-29T17:41:21Z")

</div>

The real point I was trying to make is that it is not really `Html.map` (or `Cmd.map`) that is the problem, its trying to split up an Elm application into stateful components that is. You would use `Html.map` (or `Cmd.map`) to do that, so it can be a code smell, but its not a certainty.

---

_[View the full topic](https://discourse.elm-lang.org/t/whats-wrong-with-using-html-map/8105)._
