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

I did a quick tweak of React's JSX transpiler to output mithril-compatible code [1], as the above was the sort of syntax I was using JSX to get away from!

    return <html>
      <body>
        <input>
        <button>Add</button>
        <table>
          <tbody>
            <tr>
              <td><input type="checkbox"/></td>
              <td>task description</td>
            </tr>
          </tbody>
        </table>
      </body>
    </html>
[1] https://github.com/insin/msx/


Definitely more readable than Mithril




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

Search: