wix-incubator / react-templates

Light weight templates for react
https://wix.github.io/react-templates
MIT License
2.82k stars 207 forks source link

support "preact" #180

Open nippur72 opened 8 years ago

nippur72 commented 8 years ago

Preact is a React clone that is gaining popularity. With minimal changes, react-templates might be modified to support preact as a target different than React or React native.

From my early experiments the changes needed are:

As for how to enable the preact syntax, I am for using the already existing --target-version, by simply telling --target-version preact.

motin commented 7 years ago

+1 native preact support would be great. @nippur72, have you checked if react-templates works with preact-compat?

nippur72 commented 7 years ago

@motin I initially checked it when testing my PR, and if I remember correctly there were no problems. Of course the PR is to use preact without preact-compact.