Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can use Babel's JSX transformer for HTML elements by sticking this in a .babelrc file:

    {
      "jsxPragma": "m"
    }
You'll also be able to use it for Mithril components when the next version of Mithril is released. Relevant issue: https://github.com/lhorie/mithril.js/issues/632


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: