Skip to content

protoship/html-to-rescript-jsx

Repository files navigation

HTML-to-ReScript-JSX

Convert plain HTML with inline styles into valid ReScript React JSX component.

Use online: https://html-to-rescript-jsx.protoship.io/

Test cases for currently covered features: https://html-to-rescript-jsx.protoship.io/test.html

Development

  1. Start ReScript compiler to compile src/**/*.res to .bs.js.
npm run start
  1. Start Webpack dev server:
npm run dev

Testing

The tests are run on the browser.

npm run test

This will start the Webpack dev server, which will build browserTest.bs.js and opens src/test.html in browser.

Thanks to