Commit graph

18 commits

Author SHA1 Message Date
Per Eriksson
e66aaf1458
A note on JSX events (#2648)
Co-authored-by: Stephan Hoyer <ste.hoyer@gmail.com>
2022-01-25 21:43:03 +01:00
Saxon Stiller
720cccf73a update webpack babel config for webpack 4.x | babel-loader 8.x… (#2497) 2019-07-31 23:15:44 -04:00
Isiah Meadows
48e7fd1711
Refactor scripts (#2465)
* Refactor all kinds of scripts

* Update docs to ensure linter passes
2019-07-27 15:12:49 -04:00
Isiah Meadows
234b1c9302 Update migration, fix various minor issues
- Lot of people couldn't migrate to v1 and plan to reevaluate when v2 is
  released.
- It's "npm" not "NPM". It doesn't stand for anything, and it never
  has - it was initially chosen simply because it was easy to type.
  It has a lot of unofficial backronyms with "Node Package Manager"
  being one of the most common ones, but it's never officially stood
  for anything as an acronym *or* initialism.
- Fixed a few errors in the change log, like non-breaking changes being
  included in the "Breaking Changes" section and an inaccuracy in the
  summary of a particular change.
- Fixed RawGit URLs to point to GitHack, which is a lighter proxy that
  offloads caching to Cloudflare instead of also implementing it itself.
  (It also just uses nginx for all the important server logic, so it
  scales better.)
- Add a few more v0.2 references as appropriate
2019-07-24 05:01:20 -04:00
Isiah Meadows
20f0759103
Fix docs (#2482)
* Fix #2414, address part of #1687

Also cleared the CSS up to be a lot more readable instead of smooshed
into a single line.

* Redo the testing docs page

- Addresses another part of #1687
- Also, fix a few linter issues in the ospec binary

* Add note about third-party cookies, tweak a line

* Make the JSX comparison much more meaningful

And let the code speak for itself. Don't fuel the flame wars any more
than what they've already become. We should be *unopinionated*, and so
I've updated those docs to remove the existing opinion.

* Remove a bunch of outdated ES6 references

* Remove the CSS page
2019-07-23 16:33:56 -04:00
Isiah Meadows
a23bcea7ee
Correct a bunch of incorrect/outdated references (#2457)
- Babel 7 has a whole different module API
- Traceur is basically dead
- JSX != HTML
- Some bits are just obvious from context what they are
- ES6 docs shouldn't be auto-installing JSX support
- Also, I decided it was worth clearing up some misleading docs in
  surrounding areas.
2019-07-06 03:41:01 -04:00
Ayush Jain
982fdf5737 Corrected the case issue of 'JavaScript' throughout the docs (#2401)
* corrected JavaScript spelling
2019-04-01 08:14:38 -04:00
Pat Cavit
6fb77b7771
docs: update with latest fixes (#2116) 2018-04-12 00:11:11 -07:00
Isaac
f7c4284ffc Update webpack.config.js (in JSX docs)
Webpack doesn't support relative paths in the output.path config parameter, so this updated code uses the 'path' module to resolve the relative path.
2017-06-26 16:13:37 -06:00
micellius
b6a251b5b8 docs(jsx.md): add missing "!"
Add missing "!" to result of interpolation for `{greeting + "!"}` expression
2017-04-27 17:21:00 +03:00
Ferhat Elmasgüneş
0ed3695f78 Fixes component usage.
Updates `m.mount(document.body, <MyComponent />)` to `m.render(document.body, <MyComponent />)`.

After consuming a component using `m(component)`, you can't *mount* it to element but you can *render*.
2017-03-12 15:34:01 +02:00
Leo Horie
810228c442 fix tables in mobile 2017-01-17 22:36:34 -05:00
Leo Horie
24b7150b3c tweaks in docs 2017-01-15 10:35:29 -05:00
Leo Horie
e4d69c409a fix var name 2017-01-08 19:32:44 -05:00
Leo Horie
a0def08101 lint and highlight jsx 2017-01-08 19:30:23 -05:00
Leo Horie
7c00aad19c beef up docs and defrag setup flow 2017-01-08 10:53:54 -05:00
Leo
db0063362c fix typo 2017-01-07 17:56:29 -05:00
Leo
6284a3bd86 es6 and jsx docs 2017-01-07 14:54:48 -05:00