|
|
@ -1,6 +1,21 @@
|
|
1
|
1
|
# Playing with React
|
|
2
|
2
|
|
|
3
|
|
Opinions/impressions coming later, when I have played with this more.
|
|
|
3
|
More opinions/impressions coming later, when I have played with this more.
|
|
|
4
|
|
|
|
5
|
## Impressions
|
|
|
6
|
|
|
|
7
|
* ES6 is quite cool, especially if you wrote just plain JS before (using
|
|
|
8
|
[6to5](http://6to5.org))
|
|
|
9
|
|
|
|
10
|
Some things: `import React from "react";`, template strings, `() => ...`,
|
|
|
11
|
* `webpack` is fun/convenient/surprisingly fast (and has support for
|
|
|
12
|
all the things we use here, e.g. react/jsx, 6to5, css)
|
|
|
13
|
* JSX works well, even though I'd prefer doing it in Clojure (`hiccup`
|
|
|
14
|
syntax, e.g. nested vectors & collections. has someone written a library
|
|
|
15
|
for that already?)
|
|
|
16
|
* showdown, which was suggested by the tutorial, doesn't work with module
|
|
|
17
|
loaders and it was a pain to figure out how to fix it. (the fix was
|
|
|
18
|
using a different library.)
|
|
4
|
19
|
|
|
5
|
20
|
## How to run this thing
|
|
6
|
21
|
|
|
|
@ -27,6 +42,7 @@ $ vi entry.js # change something!
|
|
27
|
42
|
- make the filter dynamic (optional/difficult)
|
|
28
|
43
|
* in the future:
|
|
29
|
44
|
- try out immutable.js & reimplement the above
|
|
|
45
|
- try out `css-layout` and/or `styles` in js
|
|
30
|
46
|
|
|
31
|
47
|
## Resources
|
|
32
|
48
|
|