Commit Graph

272 Commits

Author SHA1 Message Date
Cheng Lou
4d7900a48a change some wording, add tip for events entry
- No need to mention React, you know you're working with it =).
- Wrap code elements in back ticks, so that they get the "box" styling for md.
- You'd want the snippet to work inside the live editor, so you need to `renderComponent`. As per wiki specification, the DOM element on which to mount is `mountNode`, just like on the front page.
- Don't forget the JSX pragma, or else your `render` fails.
- Nitpick: empty line after the end of md.
- No need for jQuery reference since
  1. The general mood around React is that you don't need jQuery.
  2. The syntax' still clear without jQuery.
  3. We're doing a jQuery integration entry =).
- `getInitialState` was absent.
- You don't need `componentWillMount` here. fetch them in `getInitialState`.
- The non-spoken convention seems to call the event handler `"handle" + eventName`. So `handleResize` clearly indicates it's a `resize` handler while `updateDimensions` might do something else. This latter name might actually be better under circumstances where you use call the method directly somewhere, but since we removed the only direct usage in `componentWillMount` this is fine.
- Went OCD again and tried to keep the code short. `width` is enough of a demo. Removed `height`.
- Distinguish between DOM events and React events. Wish we go full React events in a near future.
2013-10-29 10:14:20 -07:00
Cheng Lou
db16d570a0 modify some wording 2013-10-29 10:14:20 -07:00
Connor McSheffrey
153092896f Add event listeners cookbook entry 2013-10-29 10:14:20 -07:00
Cheng Lou
015b6c526d shrink working on props in state entry 2013-10-29 10:14:20 -07:00
Cheng Lou
65d1d23551 props in getInitialState as anti-pattern 2013-10-29 10:14:20 -07:00
Connor McSheffrey
b94189ef0f added grunt task for generating live samples JS 2013-10-29 10:14:20 -07:00
Cheng Lou
fb89fdb3d3 tip format for intro 2013-10-29 10:14:20 -07:00
Cheng Lou
92a0e81bd2 all typos 2013-10-29 10:14:20 -07:00
Connor McSheffrey
235101f457 Added backgroundImage example to "inline styles" cookbook entry 2013-10-29 10:14:20 -07:00
Connor McSheffrey
3a903be5fe minor spelling change on the "controlled input null value" cookbook entry 2013-10-29 10:14:20 -07:00
Cheng Lou
0dc3944e22 entry on willReceiveProps not triggered on mounting 2013-10-29 10:14:19 -07:00
Cheng Lou
6b0353ddc9 entry on controlled input with value null 2013-10-29 10:14:19 -07:00
Cheng Lou
d6af54946d add line-height to unitless css props 2013-10-29 10:14:19 -07:00
Cheng Lou
1c7b6c240f style prop value shorthand, children prop manip warning 2013-10-29 10:14:19 -07:00
Cheng Lou
9558b42b1c entry on returning only one node from render 2013-10-29 10:14:19 -07:00
Cheng Lou
6a04b5aefd fix permalink, temporarily remove script field of Jekyll 2013-10-29 10:14:19 -07:00
Cheng Lou
24533462ff small typo and code tag is now js highlight
Was html before bc github screws up the js highlighting for jsx.
2013-10-29 10:14:19 -07:00
Cheng Lou
9ccee7f475 new entry on self-closing tag 2013-10-29 10:14:19 -07:00
Cheng Lou
aa38740189 new entry for ternary expression in jsx 2013-10-29 10:14:19 -07:00
Cheng Lou
ed5ef46daf add tip format for comparison 2013-10-29 10:14:19 -07:00
Cheng Lou
9ba375bace add tip style to style entry 2013-10-29 10:14:19 -07:00
Connor McSheffrey
33232007f7 Moved cookbook recipes into separate directory. Updated nav_docs to loop through cookbook yaml. Added cookbook directory to js/ to add live editing of code samples 2013-10-29 10:14:19 -07:00
Connor McSheffrey
33531f728a Added docs for React cookbook section Introduction and Inline Styles React recipe 2013-10-29 10:14:18 -07:00
Ben Alpert
b59db6058e Move heading anchors 50px up to avoid nav bar
Fixes #447.

We do this by moving the actual anchored element up in the page without moving the actual text. (Apple uses a similar trick in their framed docs.) Now this looks a bit sillier on smaller screens but it's better overall.
2013-10-28 13:52:58 -07:00
Paul O’Shannessy
9f6b329d8a Update API docs for unmountAndReleaseReactRootNode 2013-10-26 17:42:34 -07:00
Brian Rue
2226476039 ReactTransitionGroup example: fix typo and logic bug in handleRemove 2013-10-25 18:03:31 -07:00
Keito Uchiyama
c36b68e386 docs: Delete Mutation Events (onCharacterDOMModified) 2013-10-21 19:56:49 -07:00
Paul O’Shannessy
34629c666a docs: remove OUTLINE 2013-10-21 15:20:01 -07:00
Cheng Lou
9c6d46bb14 Add clickable anchors to docs headers
Closes #434
2013-10-21 14:27:31 -07:00
Paul O’Shannessy
9c8084f396 Fix live editor examples on home page.
Remember that one time I wrote release notes and said:

> This is a breaking change - if you were using class, you must change
> this to className or your components will be visually broken.

Good thing I didn't listen to myself!
2013-10-16 17:56:51 -07:00
Paul O’Shannessy
e33abf5519 0.5.0 release
Updated README, CHANGELOG, blog post
2013-10-16 11:43:09 -07:00
Paul O’Shannessy
64fe40a058 bump version to 0.6.0-alpha 2013-10-15 22:39:28 -07:00
Paul O’Shannessy
9cde3caa6d Update docs with supported tags and attributes 2013-10-15 18:15:24 -07:00
petehunt
b5841ea2f3 new addons docs
closes #403
2013-10-15 14:09:21 -07:00
Ben Alpert
3328553ecc Tweak verbiage about required polyfills
I found it weird how the es5-shim comment came after the list of functions; now it's before.
2013-10-08 16:25:29 -07:00
Connor McSheffrey
1e809916ec fixed broken link on Community Round-up #9 blog post
closes #409
2013-10-08 11:09:33 -07:00
Vjeux
294d00c4ff Community round-up #9
http://fooo.fr:4000/react/blog/2013/10/03/community-roundup-9.html
2013-10-03 15:18:21 -07:00
Vjeux
8479315f6c Add app id for comments moderation
This way we can be notified when any new comment appear in the docs/blog and add moderators
2013-10-03 22:32:20 +02:00
Cheng Lou
699ee86fc5 Add doc link to DOM differences from JSX gotchas 2013-09-30 20:46:41 -04:00
Paul O’Shannessy
e484a734b5 Fix 404s to non-existent API docs 2013-09-24 16:00:52 -07:00
Paul O’Shannessy
a9f4a67005 Redirect docs/reference.html 2013-09-24 15:47:17 -07:00
Vjeux
05fd8b6d90 Community round-up #8 2013-09-24 14:18:11 -07:00
Paul O’Shannessy
819a59c995 Docs: Give headers ids for easy linking
This gives markdown headers an id so that we can link directly to
sections of our docs. This is better than the alternative of adding them
all ourselves.
2013-09-23 10:30:51 -07:00
Keito Uchiyama
3eb25ebafe Fix typo in doc 2013-09-22 15:09:36 -07:00
Keito Uchiyama
9eeee6960f Fix use of "it's" in docs 2013-09-22 13:24:25 -07:00
SanderSpies
ecbc0951e3 - removed creation of the id within the tooling integration doc (expect this to be done by @zpao's pull request)
- removed the if statement and now always provide a warning message (as proposed by @spicyj)
- improved the warning message
2013-09-19 06:48:38 +02:00
SanderSpies
786d431414 Correcting the markdown anchor 2013-09-19 00:58:37 +02:00
SanderSpies
cce5f4e167 Give the user a warning when using unoptimized JSX code and send the user to the correct location in the documentation to optimize. 2013-09-19 00:55:10 +02:00
Paul O’Shannessy
4560b07a6e Don't update the docs version by default
This was leading to a lot of unnecessary churn in the config file since
different YAML versions were serializing differently.
2013-09-18 10:40:12 -07:00
Pete Hunt
d476100399 Merge pull request #351 from spicyj/api-docs
Flesh out reference documentation, more API info
2013-09-17 16:12:16 -07:00