# Snippet for using Elm with React16

**URL:** <https://discourse.elm-lang.org/t/snippet-for-using-elm-with-react16/804>\
**Category:** Request Feedback\
**Created:** [March 6, 2018, 4:16pm UTC](https://discourse.elm-lang.org/t/snippet-for-using-elm-with-react16/804 "2018-03-06T16:16:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfeineis](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/mfeineis/32/104_2.png) [@mfeineis](https://discourse.elm-lang.org/u/mfeineis)\
**Post date:** [March 6, 2018, 4:16pm UTC](https://discourse.elm-lang.org/t/snippet-for-using-elm-with-react16/804/1 "2018-03-06T16:16:17Z")

</div>

Continuing to gather small gists for newcomers, here is a self-contained Elm-in-React example that runs in Ellie. Although there is [an integration NPM package for Elm in React](https://github.com/evancz/react-elm-components) this might still be useful for newcomers because you don’t need to install anything to toy around with it. Not using JSX is perhaps not that idiomatic but it keeps the snippet concise, I think. Any suggestions on improving it?

> <https://gist.github.com/mfeineis/ee4c1ccca154d17f7bb6ca34774ad9ae>

---

<div class="post-metadata">

**Author:** ![rofrol](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/rofrol/32/60_2.png) [@rofrol](https://discourse.elm-lang.org/u/rofrol)\
**Post date:** [March 13, 2018, 9:00pm UTC](https://discourse.elm-lang.org/t/snippet-for-using-elm-with-react16/804/2 "2018-03-13T21:00:35Z")

</div>

How is it different than [https://blog.boon.gl/2017/11/28/react-elm-wrapper.html](https://blog.boon.gl/2017/11/28/react-elm-wrapper.html)?

---

<div class="post-metadata">

**Author:** ![mfeineis](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/mfeineis/32/104_2.png) [@mfeineis](https://discourse.elm-lang.org/u/mfeineis)\
**Post date:** [March 13, 2018, 11:32pm UTC](https://discourse.elm-lang.org/t/snippet-for-using-elm-with-react16/804/3 "2018-03-13T23:32:44Z")

</div>

Ahh, thanks, I didn’t know that one. It’s pretty much exactly the same apart from the “not using JSX” 😇 that’s just something that comes up once in a while and I find that having a simple Ellie link helps newcomers a lot since they don’t need to set up anything.
