sbt-reactjs icon indicating copy to clipboard operation
sbt-reactjs copied to clipboard

any plans for ReactJS 0.14?

Open hohl opened this issue 9 years ago • 10 comments

hohl avatar Dec 29 '15 12:12 hohl

Im not using this anymore, so no. Ill happily accept a PR though.

dispalt avatar Jan 05 '16 20:01 dispalt

+10

nafg avatar Jan 11 '16 10:01 nafg

@ddispaltro are you using an alternative for play?

gmalouf avatar Jan 20 '16 17:01 gmalouf

no, I am just using different tools at the moment.

dispalt avatar Jan 20 '16 18:01 dispalt

For those wondering, add the following to your plugins.sbt:

dependencyOverrides += "org.webjars" % "react" % "0.14.3"

that seemed to do the trick for me.

I still needed to add a dependency on react to my build.sbt as well.

gmalouf avatar Jan 20 '16 22:01 gmalouf

One thing to note is that facebook has deprecated jstransform, which appears to be the underlying tool used by this plugin to actually transform jsx into javascript, in favor of babel.

https://facebook.github.io/react/blog/2015/06/12/deprecating-jstransform-and-react-tools.html

stejskal avatar Apr 12 '16 16:04 stejskal

The plugin works perfectly fine with 0.14 now

juanmirocks avatar May 20 '16 06:05 juanmirocks

@stejskal I'm looking to update to React v15.x now, do you possibly have an idea of how to use babel in the build pipeline instead?

sl0thentr0py avatar Jun 28 '16 10:06 sl0thentr0py

For babel i use this sbt babel plugin: https://github.com/zenato/sbt-babel you have to configure babel to handle jsx, but its easy if you follow the directions in the babel docs.

stejskal avatar Jun 28 '16 15:06 stejskal

Just to add to @stejskal

Just create a .babelrc with:

{
  "presets": ["env", "react"]
}

And npm-install the babel and the relevant presets, as with:

npm install --save-dev babel-core babel-preset-env babe-preset-react

juanmirocks avatar Nov 14 '17 20:11 juanmirocks