|
|
лет назад: 11 | |
|---|---|---|
| .. | ||
| .gitignore | лет назад: 11 | |
| README.md | лет назад: 11 | |
| comments.js | лет назад: 11 | |
| comments.json | лет назад: 11 | |
| content.js | лет назад: 11 | |
| index.html | лет назад: 11 | |
| index.js | лет назад: 11 | |
| package.json | лет назад: 11 | |
| static.js | лет назад: 11 | |
| style.css | лет назад: 11 | |
| webpack.config.js | лет назад: 11 | |
More opinions/impressions coming later, when I have played with this more.
ES6 is quite cool, especially if you wrote just plain JS before (using 6to5)
Some things: import React from "react";, template strings, () => ...,
webpack is fun/convenient/surprisingly fast (and has support for
all the things we use here, e.g. react/jsx, 6to5, css)
JSX works well, even though I'd prefer doing it in Clojure (hiccup
syntax, e.g. nested vectors & collections. has someone written a library
for that already?)
showdown, which was suggested by the tutorial, doesn't work with module loaders and it was a pain to figure out how to fix it. (the fix was using a different library.)
$ npm install -g webpack
$ npm install
$ webpack --watch
# visit index.html in your browser
$ vi index.js # change something!
css-layout and/or styles in jsnpm config set prefix $HOME/.local --global