# Dojo 2 and JSX syntax

**URL:** <https://discourse.dojo.io/t/dojo-2-and-jsx-syntax/192>\
**Category:** Dojo 2+ users\
**Created:** [May 9, 2018, 3:53pm UTC](https://discourse.dojo.io/t/dojo-2-and-jsx-syntax/192 "2018-05-09T15:53:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wgm](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dojo.io/wgm/32/55_2.png) [@wgm](https://discourse.dojo.io/u/wgm)\
**Post date:** [May 9, 2018, 3:53pm UTC](https://discourse.dojo.io/t/dojo-2-and-jsx-syntax/192/1 "2018-05-09T15:53:58Z")

</div>

I’m working on a project, and I’ve written quite a bit of it using Dojo 1. I’m considering switching over to Dojo 2, but it will involve learning typescript and a lot of re-writing and re-organizing, and I’m trying to decide if that’s a good idea at this point. Part of the re-write will involve replacing HTML templates with Dojo 2’s vdom stuff v(…) and it occurred to me that maybe typescript’s JSX syntax could ease some of the transition. Has anyone tried that?

---

<div class="post-metadata">

**Author:** ![dylan](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dojo.io/dylan/32/5_2.png) [@dylan](https://discourse.dojo.io/u/dylan)\
**Post date:** [May 10, 2018, 6:17pm UTC](https://discourse.dojo.io/t/dojo-2-and-jsx-syntax/192/2 "2018-05-10T18:17:39Z")

</div>

Dojo 2 supports JSX/TSX just fine, for what it’s worth. In particular the todo-mvc-tsx example is a good starting point, [https://github.com/dojo/examples/tree/master/todo-mvc-tsx](https://github.com/dojo/examples/tree/master/todo-mvc-tsx) .

---

<div class="post-metadata">

**Author:** ![wgm](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dojo.io/wgm/32/55_2.png) [@wgm](https://discourse.dojo.io/u/wgm)\
**Post date:** [May 22, 2018, 10:53pm UTC](https://discourse.dojo.io/t/dojo-2-and-jsx-syntax/192/3 "2018-05-22T22:53:54Z")

</div>

Thanks! and I just found [https://dojo.io/docs/index.html#doc--dojo\_\_widget-core\_\_v2\_0\_0--jsx-support](https://dojo.io/docs/index.html#doc--dojo __widget-core__ v2_0_0--jsx-support)
