Ink: Example on how to use without JSX

Created on 10 Jul 2017  路  3Comments  路  Source: vadimdemedes/ink

I am curious if there is a way to avoid a transpiler since I like to rely on node's native support for new syntax.

Most helpful comment

@xdave Thank you!

All 3 comments

You can transpile only the JSX. You don't have to transpile any of the other syntax.

@nmehta6 It has the same API as React.createElement(). Just call h() instead. See here: https://facebook.github.io/react/docs/react-without-jsx.html

@xdave Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

isaacs picture isaacs  路  4Comments

asadm picture asadm  路  5Comments

JakeDawkins picture JakeDawkins  路  4Comments

maticzav picture maticzav  路  6Comments

danikaze picture danikaze  路  5Comments