Commit Graph

31 Commits

Author SHA1 Message Date
Baraa Hamodi
a38a848170 Documentation cleanup. 2015-10-12 15:33:32 -04:00
Adam Bloomston
88d5f3cc7e Include react-dom
Fixes `Uncaught ReferenceError: ReactDOM is not defined`
2015-10-10 10:17:08 -04:00
Jim
33cd980f0e React -> ReactDOM for render() and findDOMNode() 2015-10-05 17:46:58 -07:00
Paul O’Shannessy
de98fa64c0 [docs] Update script mimetypes: text/jsx -> text/babel 2015-09-25 17:56:42 -07:00
Paul O’Shannessy
6d0dba5458 [docs] Remove mentions of react-tools/jsx command 2015-09-25 17:56:42 -07:00
Paul O’Shannessy
a115c46689 [docs] Stop supporting our JSX compiler page
Link to Babel REPL directly instead.
2015-09-25 17:56:42 -07:00
Kohei TAKATA
1f4e2f5fbe Add meta tag in the header of HTML 2015-07-10 08:49:43 +09:00
Tsung Hung
04fac68f10 updated some typos, grammers, and made sentences sound better 2015-05-04 16:26:14 -07:00
Paul O’Shannessy
dd3a5cb9a1 Merge pull request #3693 from reedloden/swap-http-to-https
SSL/TLSize all the things! (convert http:// to https:// where appropriate)
2015-04-20 11:02:29 -07:00
James South
2ef5848a35 Example is JSX not JS. 2015-04-20 14:26:39 +01:00
Reed Loden
dd010b34e2 SSL/TLSize all the things! (convert http:// to https:// where appropriate)
Update links to use https:// where it is supported. There's probably a lot
more that could be fixed, but these are the core ones I found (especially
the download links in order to prevent MITM attacks). Note that there are
some fb.me links that will redirect to http:// even while accessed over
https://, but this seemed like the best way to fix those for now.

NOTE: Only non-third-party files were modified. There are references to
http:// URLs in vendored/third-party files, but seems appropriate to fix
upstream for those rather than editing the files.

Also, copy one image locally to the blog, as it was hotlinking to a site
that did not support https://.

Last, use youtube-nocookie.com instead of youtube.com for video embeds,
as the former doesn't try to set a cookie on load (privacy enhancement).
2015-04-18 16:49:32 -07:00
Julen Ruiz Aizpuru
3ebec4b55b Docs: do not render components to document.body
Rendering to `document.body` in the examples is conveniently short, but it can
be misleading at the same time, especially for newcomers.

While it's possible to render React components to `document.body`, any 3rd
party scripts can also mess up with it, and it can have unintended consequences
and be source of difficult-to-trace bugs.
2015-03-23 13:59:24 +01:00
Michelle Todd
a753bcc8da [Docs] Reword section on React without JSX
Summary:
This section was confusing. I reworded it from:

"JSX is completely optional. You don't have to use JSX with React.
You can create these trees through `React.createElement`. The first
argument is the tag, pass a properties object as the second
argument and children to the third argument."

to:

"JSX is completely optional; you don't have to use JSX with React.
You can create React elements in plain JavaScript using
`React.createElement`, which takes a tag name or component, a
properties object, and variable number of optional child
arguments."

and additionally added another child element to the example code.

Test Plan:
Read the new paragraph!
2015-02-16 17:12:19 -08:00
Chitharanjan Das
1307460818 Update 02-displaying-data.md
Just a couple of minor grammatical fixes.
2014-12-30 10:49:44 +00:00
Bruno Škvorc
ff521a97b8 Update 02-displaying-data.md
Typo fix
2014-12-14 08:03:35 +01:00
Sebastian Markbage
836909901e Updated Docs for new JSX Changes
Moved non-JSX explanation to Displaying Data.
Overhauled JSX in Depth.
Added JSX Spread Section.
2014-10-28 11:06:30 -07:00
Paul O’Shannessy
febd05b900 Update React.DOM -> React.createElement through docs 2014-10-28 11:06:30 -07:00
Ben Alpert
fb46ad0356 Update docs to align with 0.12 better
- Rename React.renderComponent -> React.render
- Remove most references to transferPropsTo
2014-10-22 14:01:54 -07:00
Cheng Lou
33c7ee6112 [Docs] Remove most of @jsx
I kept some places intact (search for @jsx) because they require other bigger changes:

- ref-01-top-level-api.md
- grunt/tasks/npm.js
- old blog posts (don't change those)
- examples/ folder, as they have their own package.json that rely on old dependencies (node-jsx, reactify) that haven't upgraded to 0.12
2014-10-20 14:44:07 -04:00
Paul O’Shannessy
2865e4a1c8 Set default layout for docs 2014-08-13 11:40:14 -07:00
Ben Alpert
ee8b26034f Remove two more react.min.js references 2014-01-08 11:40:53 -08:00
Cheng Lou
0767e7b9dd docs make all link start with /react/docs 2013-12-19 17:15:01 -05:00
Paul O’Shannessy
3e9341139b [docs] Fix broken links 2013-07-17 01:37:52 -07:00
Paul O’Shannessy
2a5ad2b735 re-bold some text so it stands out better 2013-07-17 00:25:23 -07:00
Paul O’Shannessy
609a3766bd em dashes 2013-07-16 23:38:15 -07:00
Paul O’Shannessy
77a43c1727 Cleanup "Displaying Data" 2013-07-16 23:24:22 -07:00
Paul O’Shannessy
fd5e9603d1 Don't hard code React version anywhere 2013-07-16 21:08:10 -07:00
Paul O’Shannessy
f2345ba2e2 Remove numbers from URLs.
This will let us keep docs in order on the filesystem but have
reasonable permalinks. If we add something at 02- it doesn't result in
lots of broken links.
2013-07-16 17:09:43 -07:00
Paul O’Shannessy
17ea30c8c5 Fix title casing and heading levels 2013-07-16 14:52:57 -07:00
petehunt
459302a131 put it all together 2013-07-14 18:42:39 -07:00
petehunt
1263fde643 move docs around, add likebutton 2013-07-14 18:31:46 -07:00