Closed borkdude closed 5 years ago
So this is a problem, but this particular example is incorrect b/c the source is react-with-addons
and that is not caused by devcards.
But sablono
calls React.createClass and so does cljs-react-reload
.
Sablono has an unreleased fix for this and I'm going to work on cljs-react-reload
.
@bhauman I noticed and I made a patched version for our own use (https://github.com/borkdude/cljs-react-reload/commit/4b8d5984a0b7f0ae807b292d93aad6534d4a79bd). I'm not sure what the proper solution would be to support React <= 15 and >= 16. I guess the version of React can be checked.
Can you send a PR with that change?
On Tue, Aug 15, 2017 at 5:37 PM, Michiel Borkent notifications@github.com wrote:
@bhauman https://github.com/bhauman I noticed and I made a patched version for our own use (borkdude/cljs-react-reload@4b8d598 https://github.com/borkdude/cljs-react-reload/commit/4b8d5984a0b7f0ae807b292d93aad6534d4a79bd ). I'm not sure what the proper solution would be to support React <= 15 and
= 16. I guess the version of React can be checked.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bhauman/devcards/issues/126#issuecomment-322597113, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAKQKq69b7PI43t5kJZ06DvLfz_0bq0ks5sYg-ugaJpZM4OvrFI .
I actually just did it, if you don't mind :)
On Tue, Aug 15, 2017 at 5:39 PM, Bruce Hauman bhauman@gmail.com wrote:
Can you send a PR with that change?
On Tue, Aug 15, 2017 at 5:37 PM, Michiel Borkent <notifications@github.com
wrote:
@bhauman https://github.com/bhauman I noticed and I made a patched version for our own use (borkdude/cljs-react-reload@4b8d598 https://github.com/borkdude/cljs-react-reload/commit/4b8d5984a0b7f0ae807b292d93aad6534d4a79bd ). I'm not sure what the proper solution would be to support React <= 15 and
= 16. I guess the version of React can be checked.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bhauman/devcards/issues/126#issuecomment-322597113, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAKQKq69b7PI43t5kJZ06DvLfz_0bq0ks5sYg-ugaJpZM4OvrFI .
@bhauman I don't think it's a good idea to merge that change, since it will break for older versions of React and will only work with create-react-class
. I looked at sablono and this is probably the way to make it stable for all versions:
https://github.com/r0man/sablono/pull/167/files
Let me look at what a solution like this would take.
On Tue, Aug 15, 2017 at 5:44 PM, Michiel Borkent notifications@github.com wrote:
@bhauman https://github.com/bhauman I don't think it's a good idea to merge that change, since it will break for previous versions of React. I looked at sablono and this is probably the way to make it stable for all versions: https://github.com/r0man/sablono/pull/167/files
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/bhauman/devcards/issues/126#issuecomment-322598445, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAKQL_N7M3gGQ72ru6pUDe8yGJ_3gN5ks5sYhEsgaJpZM4OvrFI .
As of React 16.3, React.createClass is not a function
these issues have been fixed
I'm using these deps:
along with devcards 0.2.3 and I'm getting this warning:
Is there any chance this can be fixed?