purescript-concur / purescript-concur-react

Concur UI Framework for Purescript
https://purescript-concur.github.io/purescript-concur-react
MIT License
269 stars 17 forks source link

Umbrella issue for alternative backends #52

Open ajnsit opened 4 years ago

ajnsit commented 4 years ago

This issue is to track requests for alternative backends and their status.

  1. Preact (https://github.com/purescript-concur/purescript-concur-react/issues/31)
  2. Mikado (https://github.com/purescript-concur/purescript-concur-react/issues/36)
  3. Nerv (https://github.com/purescript-concur/purescript-concur-react/issues/31)
  4. Purescript-react-basic (https://github.com/purescript-concur/purescript-concur-react/issues/47)
janat08 commented 4 years ago

Nerv should have identical API, to that of react.

Woody88 commented 3 years ago

I just want to let you guys know that for libraries that are fully compatible with react no work is required. For instance, say that you want to use nerv the only effort that is required is to set its module names as react. This can be accomplished by adding the code snippet below in your package.json:

Taken from nerv README page.

  "alias": {
    "react": "nervjs",
    "react-dom": "nervjs",
    "react-dom/server": "nerv-server"  // I had to add this in my project.
  },

I think that the same can be accomplish with preact.