Dan Holmsand
91a8587b79
Make core/react a function
...
That allows us to make react loading lazy in the future.
2015-10-22 15:11:15 +02:00
Dan Holmsand
2f6f2a4491
Fix indentation and style
2015-10-22 13:44:14 +02:00
Dan Holmsand
63515236cb
Make sure empty [:input] doesn't throw exception
2015-10-22 13:31:58 +02:00
Dan Holmsand
45b93c8145
Rename .' and .! to $ and $! respectively
...
This seems to be necessary to avoid trouble with bootstrapped cljs.
The old macros are still around, but deprecated.
2015-10-22 13:23:49 +02:00
Dan Holmsand
7cbde6f115
Load ReactDOM and ReactDOMServer lazily
2015-10-15 13:56:05 +02:00
Dan Holmsand
f280e979c8
Add more convenient time macro
2015-10-15 13:19:36 +02:00
Dan Holmsand
cf96f3c347
More space for h2
2015-10-15 11:23:47 +02:00
Dan Holmsand
4d00b44c7c
Update ClojureScript to 1.7.145
2015-10-14 16:09:02 +02:00
Dan Holmsand
c0bf6c488b
Make h2 bigger
2015-10-14 15:21:03 +02:00
Dan Holmsand
73ba98bc93
ReactDOMServer doesn't seem to exist anywhere
...
So, don't look for it.
2015-10-14 15:10:46 +02:00
Dan Holmsand
54ecf706d5
Rethrow errors caught during try-run
2015-10-14 15:08:33 +02:00
Dan Holmsand
2d4500b61f
Tweak demo site styling a little
2015-10-14 09:51:51 +02:00
Dan Holmsand
47c5fcf267
Unoptimize component...
...
Remove "optimizations" that didn't doo much good.
2015-10-12 22:30:49 +02:00
Dan Holmsand
92984c4c56
Add react to core for convenience
2015-10-12 17:29:03 +02:00
Dan Holmsand
776c47491c
Make sure lifecycle callbacks work when called as native component
2015-10-12 17:18:37 +02:00
Dan Holmsand
fbbc5e72c6
Flush should not mess with scheduled updates
2015-10-12 09:25:33 +02:00
Dan Holmsand
78fffe263e
Make next-tick more predictable, add after-render
2015-10-11 22:08:42 +02:00
Dan Holmsand
edf001cb62
Reuse react from util in server
2015-10-11 16:43:25 +02:00
Dan Holmsand
253cb999ba
Call component functions with this set to current component
...
This makes us more consistent with React classes, and gives more
informative stack traces sometimes.
Also stop wrapping unknown methods - let React deal with them directly.
2015-10-11 15:04:50 +02:00
Dan Holmsand
04325c2e0e
Stop trying to be too clever in render
...
There's no reliable way of making React forget a mounted tree
completely, and the old solution sometimes makes things worse.
2015-10-11 13:27:09 +02:00
Dan Holmsand
cdea2257f2
Revert to not munging names in interop
2015-10-11 13:26:43 +02:00
Dan Holmsand
06973350da
Update react-dom to 0.14.0
2015-10-10 14:20:20 +02:00
Dan Holmsand
d9ad7740ec
Make it easier to use with webpack and node
...
Demo and tests now can run with webpack-generated React
Use js/require, to make Reagent work better with node
2015-10-10 13:40:33 +02:00
Dan Holmsand
d30ef3aedb
Make copying of watches in ratom a little faster
2015-10-09 14:41:03 +02:00
Dan Holmsand
88d961563a
Simplify template.cljs a little
2015-10-09 13:32:30 +02:00
Dan Holmsand
47f49868ae
Optimize template.cljs a little
2015-10-09 09:40:41 +02:00
Dan Holmsand
32a9609b11
Add a few more tests for track
2015-10-08 23:12:32 +02:00
Dan Holmsand
9f07aa35f4
Experiment with js-object element in 0.14
...
Doesn't seem to do much for performance, unfortunately.
2015-10-08 18:37:48 +02:00
Dan Holmsand
3aea9849ec
One more step towards React 0.14
2015-10-08 16:19:40 +02:00
Dan Holmsand
fa48e61f47
Start move to React 0.14
2015-10-08 14:14:34 +02:00
Dan Holmsand
0c8269766f
Avoid calling flush! when flushing
2015-10-08 07:04:41 +02:00
Dan Holmsand
158fca953b
Make NativeWrapper thinner
2015-10-07 23:02:55 +02:00
Dan Holmsand
2a74cbb144
More tests for warnings
2015-10-07 21:37:26 +02:00
Dan Holmsand
1d1552960c
Start testing warnings from components
2015-10-07 20:38:19 +02:00
Dan Holmsand
7f189d7595
Fix lifecycle test
2015-10-07 19:58:00 +02:00
Dan Holmsand
ec769d0c3c
Print function names instead of source in warnings/errors
2015-10-07 19:50:29 +02:00
Dan Holmsand
b86e6278eb
Reformat to get rid of very long lines
2015-10-07 18:01:13 +02:00
Dan Holmsand
fefbcf109e
Use new hiccup-err more
2015-10-07 17:56:08 +02:00
Dan Holmsand
72e546128f
Avoid any overhead for supporting [:> comp ...]
2015-10-07 17:33:40 +02:00
Dan Holmsand
26392052b4
Get rid of pesky React warning in demo
2015-10-07 13:55:16 +02:00
Dan Holmsand
60427a3231
A little cleanup
2015-10-07 13:31:54 +02:00
Dan Holmsand
e79132c1f3
Always queue updates in reactions, even when flushing
2015-10-07 11:32:42 +02:00
Dan Holmsand
e6b32c6aee
Allow raw React classes to be used with [:> comp ...]
2015-10-06 14:27:44 +02:00
Dan Holmsand
533c05aaca
Allow output from create-class to be used directly by React
2015-10-06 12:49:47 +02:00
Dan Holmsand
4601b37ec5
Use functions to access argv
2015-10-06 10:46:59 +02:00
Dan Holmsand
eb359b301d
More property access to component.cljs
2015-10-06 10:40:11 +02:00
Dan Holmsand
52e729a294
Simplify class creation
2015-10-05 12:18:42 +02:00
Dan Holmsand
038b312dd0
Merge branch 'create-class'
2015-10-05 10:42:51 +02:00
Dan Holmsand
de1e4d4ad5
Get rid of silent in ratom
...
And some small cleanup
2015-10-04 12:53:23 +02:00
Dan Holmsand
9a2d632826
Refactor to avoid circular dependency in ratom
2015-10-04 11:27:47 +02:00