Commit Graph

307 Commits

Author SHA1 Message Date
Paul O’Shannessy
679397f60e fix broken link on controlled input tip 2013-11-13 17:43:16 -08:00
Paul O’Shannessy
710f54b605 Children props tip tweak 2013-11-13 17:43:16 -08:00
Paul O’Shannessy
c98bb39b26 Fix broken link, formatting on px style tip 2013-11-13 17:43:16 -08:00
Paul O’Shannessy
efb8d5c6d5 Tweak for self closing tag tip 2013-11-13 17:43:16 -08:00
Paul O’Shannessy
9bde5abedc Tweaks to if-else tip 2013-11-13 17:43:16 -08:00
Paul O’Shannessy
47d5b9c302 Small cleanup to style tips 2013-11-13 17:43:16 -08:00
Paul O’Shannessy
7f9c7c1f80 Small cleanup to tips intro 2013-11-12 13:22:55 -08:00
Connor McSheffrey
b8c7f3cdfd Renamed Cookbook references to tips. Reworded intro (sounded weird because it still referenced cookbooks. Updated some entry ID's (some side nav links didn't match entry permalinks) 2013-11-11 21:00:53 -08:00
Cheng Lou
df40e92e29 fix title case for docs tips everywhere 2013-11-05 09:57:00 -05:00
Connor McSheffrey
f1395296b2 Update nav config with new entry names/permalinks 2013-10-30 12:29:38 -07:00
Cheng Lou
c4bf9aa5bd title case for entry titles; fix two entry names 2013-10-30 15:06:16 -04:00
Connor McSheffrey
1c0b37f10a Merge pull request #17 from chenglou/feat-documentation-cookbook
fix 3 more entries
2013-10-29 18:10:56 -07:00
Connor McSheffrey
86718357cf Removed grunt task for building live edits and removed js link conditional at bottom of layout since we're no longer conditionally loading live edit js for cookbook pages 2013-10-29 18:04:29 -07:00
Cheng Lou
e6101bd4ca ex for entry 7 2013-10-29 14:55:11 -04:00
Connor McSheffrey
7aaa32c9e8 Removed JS for live edit 2013-10-29 11:28:28 -07:00
Cheng Lou
d10e60b7cd Merge branch 'feat-documentation-cookbook' of https://github.com/mcsheffrey/react into feat-documentation-cookbook 2013-10-29 14:23:17 -04:00
Cheng Lou
4e3dd23316 fix 2 more entries 2013-10-29 14:20:04 -04:00
Connor McSheffrey
b81366d561 Removed .js extension from Cookbook Introduction description 2013-10-29 11:09:57 -07:00
Cheng Lou
3c5555af50 new line at end of nac_docs; update to entry 4 2013-10-29 14:02:20 -04:00
Connor McSheffrey
3b8c13d08d Removed Q&A format 2013-10-29 10:42:47 -07:00
Connor McSheffrey
871b6c4252 Removing the grunt task generated live edit JS files since we're holding off on the inline edit feature for now 2013-10-29 10:15:45 -07:00
Cheng Lou
3545fe394c better grammar 2013-10-29 10:15:45 -07:00
Cheng Lou
7f14b38499 entry on false behavior 2013-10-29 10:15:45 -07:00
Connor McSheffrey
854593e574 Remove cb prefix from cookbook entries since they're already in /cookbook/ directory 2013-10-29 10:15:45 -07:00
Connor McSheffrey
b18b0c9c9a removed cookbook prefix from filenames 2013-10-29 10:15:45 -07:00
Connor McSheffrey
ae78fe9e12 better regex for filename 2013-10-29 10:15:45 -07:00
Connor McSheffrey
89384f4071 undo changes to extractCode, using grunt task instead 2013-10-29 10:15:45 -07:00
Connor McSheffrey
8d3d63cd96 added function that write to the output html file 2013-10-29 10:15:45 -07:00
Connor McSheffrey
d0467822e4 added seperate cookbook layout (since URL base of next/prev is hardcoded in layout), added next/prev yaml meta to each cookbook entry until I can find a way of generating them dynamically 2013-10-29 10:15:45 -07:00
Connor McSheffrey
62f271032c update cookbook nav 2013-10-29 10:15:45 -07:00
Cheng Lou
ae6d257a28 remove entry 13 jquery animation; react has animation 2013-10-29 10:14:21 -07:00
Cheng Lou
a4a88e7e8e one single child in ternary 2013-10-29 10:14:21 -07:00
Cheng Lou
33e2798a95 add lib integration entry; tweak 1 sentence 2013-10-29 10:14:20 -07:00
Cheng Lou
97eb0f1a6c ajax ex 2013-10-29 10:14:20 -07:00
Cheng Lou
015eda5260 fix all links to point to /react as root 2013-10-29 10:14:20 -07:00
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