Authoring React Components with Fable
Because we can.
Sample F# React component which can be build and published to NPM
cd fs-react-sample-component
yarn build
npm link
# optionally yarn watch
cd ../js-test
yarn
npm-link fs-react-sample-component
yarn start
Sample showing how to convert an Elmish app to a react component which can be embedded in a regular JavaScript page.
Javascript test project which includes the f# project without reference to fable
Magic, probably.
https://unpkg.io/[email protected]/dist/react.min.js https://unpkg.io/[email protected]/dist/react-dom.min.js https://unpkg.com/[email protected]/build/index.js