Jonas Enlund
757f2f88cc
cleanup
2014-02-09 14:02:36 +02:00
Dan Holmsand
b09c35457e
Improve error message for invalid Hiccup forms
2014-02-09 12:42:51 +01:00
Jonas Enlund
bc607852ef
Added some circles
2014-02-09 13:12:54 +02:00
Jonas Enlund
b25facab63
testing the anyargs branch
2014-02-09 12:04:13 +02:00
Dan Holmsand
e32c3ad044
Fix bug in the new extract-children, and simplify wrapping
2014-02-09 08:48:55 +01:00
Dan Holmsand
3c2c63402e
Breaking change: Allow arbitrary arguments to component functions
...
Previously, the first argument had to be a map, and the rest of the
arguments where passed as a vector as the second argument.
Now [my-comp foo...] generally behaves as (my-comp foo...).
Since `this` is no longer passed to component functions, add
current-component function.
Also change signatures of React callbacks, to reflect that arbitrary
arguments can be passed.
Remove set-props and replace-props for the same reason.
Add argv accessor and set-args instead.
2014-02-08 13:55:01 +01:00
Dan Holmsand
69384d98c6
Simplify create-class
2014-02-08 10:55:29 +01:00
Dan Holmsand
e8b108ea5e
Version 0.3.0
2014-02-03 14:54:01 +01:00
Dan Holmsand
28c2acc923
Factor out undo-demo into its own namespace
2014-02-03 14:50:35 +01:00
Dan Holmsand
581cbf84be
Update to ClojureScript 2156
2014-02-03 14:40:37 +01:00
Dan Holmsand
aca69347b7
Merge branch 'delayed'
...
Conflicts:
src/reagent/impl/template.cljs
2014-02-03 14:07:02 +01:00
Dan Holmsand
046912a322
Add some doc strings
2014-02-03 13:59:02 +01:00
Dan Holmsand
e7f066177b
Make sure changes to state in render fn don't cause disaster
2014-02-03 13:58:31 +01:00
Dan Holmsand
445f1da424
Only show summaries on news page
2014-02-03 10:27:17 +01:00
Dan Holmsand
1c702920bd
Start writing copy about async rendering
2014-02-03 09:38:02 +01:00
Dan Holmsand
e10548f8ba
Reduce is great, and fast. Use it more
2014-02-02 11:40:23 +01:00
Dan Holmsand
1b6b4e449e
Make sure all React lifecycle callbacks are supported
2014-02-02 11:38:25 +01:00
Dan Holmsand
35bc336743
Add a little demo
2014-01-30 22:29:42 +01:00
Dan Holmsand
d3407ff664
Consider symbols to be "identical"
...
And test some more obscure should-component-update variants.
2014-01-30 10:34:41 +01:00
Dan Holmsand
702f0c3238
Make testing demo a little easier
2014-01-29 11:53:45 +01:00
Dan Holmsand
344e9e5db5
Make should-component-update a little faster for :style attrs
2014-01-29 11:40:07 +01:00
Dan Holmsand
b45a215f52
Speed up conversion to js a lot by using reduce-kv
2014-01-29 11:00:05 +01:00
Dan Holmsand
a91214e434
Add next-tick as utility on core.cljs
2014-01-28 20:19:10 +01:00
Dan Holmsand
e055fbad26
Make Closure stop whining about "dangerous use of this in static method"
2014-01-28 20:18:19 +01:00
Dan Holmsand
f654c6663f
Make textarea, radio buttons and checkboxes async-friendly
...
And clean up code a little
2014-01-28 19:34:06 +01:00
Dan Holmsand
d1851d5a42
Allow dynamic id with hiccup-style classes
...
And id in props wins over static id.
Fixes #11
2014-01-28 18:00:15 +01:00
Dan Holmsand
8b4ec9fda6
Make managed inputs work better with async rendering
2014-01-28 17:23:39 +01:00
Dan Holmsand
f1bbd7d99e
Handle html5 history better
2014-01-27 22:30:42 +01:00
Dan Holmsand
4a537af429
Use prefixed requestAnimationFrames if available
2014-01-27 16:26:21 +01:00
Dan Holmsand
dfe0eb41d5
Batch updates properly by rendering parents before children
2014-01-27 16:17:37 +01:00
Dan Holmsand
eb381f13bb
Start experimenting with batched rendering with requestAnimationFrame
2014-01-27 13:37:59 +01:00
Dan Holmsand
68da921e35
Version 0.2.1
2014-01-26 09:51:36 +01:00
Dan Holmsand
23a5f80197
Fix test-running under advanced compilation
...
Turns out that clojurescript.test breaks unless the test
directory is included first, but only with advanced compilation
and only on the first run...
2014-01-25 17:02:58 +01:00
Dan Holmsand
f9d0b58af8
Allow data-* and aria-* attrs, pass string attrs as-is to React
2014-01-25 13:47:41 +01:00
Dan Holmsand
f3e4c7f6b0
Version 0.2.0
2014-01-24 11:40:15 +01:00
Dan Holmsand
8110b1aca8
Tweak demo and testing
2014-01-24 11:03:01 +01:00
Dan Holmsand
c23bb970e7
Make components look nicer in React's Chrome plugin
2014-01-24 11:02:27 +01:00
Dan Holmsand
969b63cd00
Add some copy
2014-01-22 08:40:04 +01:00
Dan Holmsand
97da42101a
Move all page handling to page.cljs
2014-01-21 11:50:08 +01:00
Dan Holmsand
f5c80e820e
Simplify link handling
2014-01-20 11:37:57 +01:00
Dan Holmsand
ebade509bf
Add permalink support
2014-01-20 10:46:51 +01:00
Dan Holmsand
702dd1a113
Add menu row
2014-01-20 09:43:45 +01:00
Dan Holmsand
d0abe25adf
Factor out link handling to common.cljs
2014-01-20 09:42:16 +01:00
Dan Holmsand
95389b6fde
Beep on generation error
2014-01-20 09:40:56 +01:00
Dan Holmsand
446e05adec
Move page generation to ClojureScript
2014-01-19 12:13:19 +01:00
Dan Holmsand
8fc6bf3e6e
Make todomvc look like it should
2014-01-19 10:34:12 +01:00
Dan Holmsand
0a0dbdee7d
Add simple undo demo
2014-01-19 10:25:16 +01:00
Dan Holmsand
ce9afb470c
Rename demoutil
2014-01-18 11:43:56 +01:00
Dan Holmsand
1d48785a42
Move intro into its own file
2014-01-18 11:31:43 +01:00
Dan Holmsand
4596244c3b
Simplify project.clj
2014-01-17 16:00:42 +01:00