File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,10 +4,14 @@ PSC_OPTS =
44all : lib example
55
66lib :: lib/React.js
7- example :: example/app.js
7+ example :: example/app.js example/bower_components
8+
9+ example/bower_components :
10+ (cd example && bower install react)
811
912clean :
1013 rm -f lib/React.js example/app.js
14+ rm -rf example/bower_components/
1115
1216lib/React.js : src/React.purs
1317 mkdir -p $(@D )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ incrementCounter = do
1111
1212counter = mkStatefulUI 0 \props -> do
1313 val <- readState
14- return (div {className: " Counter" , onClick: handle incrementCounter} [text (show val)] )
14+ return (div {className: " Counter" , onClick: handle incrementCounter} [text (show val), text " Click me to increment! " ])
1515
1616main = do
1717 let component = div {} [counter {}, hello {name: " World" }, counter {}]
Original file line number Diff line number Diff line change 1+ <!doctype>
2+ < html >
3+ < head >
4+ < style >
5+ .Counter {
6+ cursor : pointer;
7+ user-select : none;
8+ -webkit-user-select : none;
9+ -moz-user-select : none;
10+ }
11+ </ style >
12+ </ head >
113< body >
214< script src ="bower_components/react/react.js "> </ script >
315< script src ="app.js "> </ script >
416</ body >
17+ </ html >
You can’t perform that action at this time.
0 commit comments