Commit Graph
2508 Commits
Author SHA1 Message Date
Dan Abramov fbdd43fd70 Fix lint 2017-10-02 18:51:15 +01:00
Yangshun TayandBrian Vaughn 5e8d124754 Ensure all external links have consistent behavior (#11012) 2017-10-02 09:52:39 -07:00
Cole TurnerandBrian Vaughn bd915caaf7 Clarify implementation of tick() in Lifecycle docs (#11002)
This documentation change clarifies how the method `tick()` relates to the example given in the State and Lifecycle documentation. Why this change is necessary is because it may be confusing for beginners who may mistake `tick()` to be a lifecycle API hook.  To clarify, the verbiage is changed so that it becomes more clear that the method is specific to the component and not the API.
2017-10-02 09:37:05 -07:00
Dan AbramovandGitHub 12d5231c2a Clarify the IRC channel confusion 2017-10-02 15:30:19 +01:00
John Darryl PelingoandDan Abramov f444937bd8 Combine rendered Note section (#11026) 2017-10-02 13:47:40 +01:00
Dan AbramovandGitHub df445270a6 Disambiguate #react and #reactjs IRC channels (#11025) 2017-10-02 13:32:25 +01:00
Goffert van GoolandDominic Gannaway 4c855cce0b Update web-component docs to current standard (#11020)
The documentation example for Web Components uses deprecated Custom Element and Shadow DOM APIs [0]. This change updates the example to the v1 APIs, which are the current standard.

[0] https://developers.google.com/web/fundamentals/web-components/customelements#historysupport
2017-10-02 11:44:57 +01:00
Josh HawkinsandDan Abramov 18d574a086 Improve docs for select multiple (#9539)
* Readd original select multiple note

* Update forms.md
2017-10-02 00:18:08 +01:00
Greg MyersandDan Abramov 766db4d342 Update Reference-readme to remove React.DOM (#10999)
`React.DOM` is now Undefined in React 16 so `React.DOM.div` or `React.DOM.button` are no longer possible.
2017-10-01 11:53:00 +01:00
Jason O'NeilandDan Abramov e3d710e60a Fix createPortal link in API docs (#11000)
The anchor name is lower case
2017-10-01 11:52:22 +01:00
Dan AbramovandGitHub c8af9c4645 Fix HTML file download link 2017-09-30 21:10:01 +01:00
Pooya ParsaandBrian Vaughn 2e2dc6708f fix(examples/todo): don't submit empty values (#10979) 2017-09-30 08:20:01 -07:00
Dave GarwackeandBrian Vaughn f2568605a7 chore(docs) Remove extra style tag curly braces (#10973)
Removed an extra quoted set of curly braces..
2017-09-30 08:11:55 -07:00
Joe CritchleyandBrian Vaughn b43574067e [Gatsby] Installation tabs design (#10989) 2017-09-30 07:53:08 -07:00
Eugene ZhloboandBrian Vaughn 81cf21c6d1 Fix anchor links in reference-react documentation (#10975) 2017-09-29 18:44:45 -07:00
skratchdotandBrian Vaughn 0344f7ad55 [Gatsby] "https://facebook.github.io/react/" -> "https://reactjs.org/" (#10970) 2017-09-29 18:43:22 -07:00
Dan AbramovandGitHub c22e4202d3 Fix note formatting (#10966) 2017-09-29 18:37:35 +01:00
watadarkstarandDan Abramov 2494a25ee9 Added unstable_batchedUpdates as breaking change to v16 post (#10954)
* Add breaking change

ReactDOM.unstable_batchedUpdates now only takes one argument.

* Reword

* Update CHANGELOG.md
2017-09-29 13:08:20 +01:00
JoshuaandDan Abramov 3a4c2a661f Use ES6 module instead of commonJS (#10953)
* Use ES6 module instead of commonJS

As far as I know, we're using ES6 modules throughout the docs. For the sake of consistency :)

* Convert all CommonJS requires to ES6 module
2017-09-29 12:24:10 +01:00
Dan AbramovandGitHub d87804abc2 Tweaks to "Introducing JSX" (#10944)
* Tweaks to "Introducing JSX"

* Update introducing-jsx.md

* Update introducing-jsx.md

* Update introducing-jsx.md
2017-09-29 00:32:25 +01:00
Orjiewuru Kingdom IsaacandDan Abramov 25b48c8b03 Add React Summit Nigeria to the list of conferences. (#10939) 2017-09-28 23:04:59 +01:00
Flarnie MarchanandGitHub ca7bea802f [website] a11y fixes (#10927)
* [Gatsby docs a11y] Add `aria-label` to search input

**what is the change?:**
See title.

**why make this change?:**
There was no label on this input, and screen readers might not have been
able to identify it's purpose.
[The `placeholder` doesn't count as a label.](http://a11yproject.com/posts/placeholder-input-elements/)

**test plan:**
Manually inspected the HTML in the devtools, and ran the aXe a11y audit
tool, and the warning generated by aXe was gone.

**issue:**
Checklist item on list of docs a11y issues -
https://github.com/bvaughn/react/wiki/Gatsby-A11y-Fixes

* [Gatsby Docs a11y] Increase contrast of 'installation' page tabs

**what is the change?:**
Change the dark blue used for the text/background of the tabs on the
'installation' page to a slightly darker blue, which we were already
using for the 'focus' style of the tabs. It looked a bit weird before,
imo, when the 'focus' was darker.

Now the 'focus' style just lightens the border to the new signature
blue.

**why make this change?:**

To add enough contrast that folks who see colors differently can still
decipher the writing on the tabs on this page.

We plan to refactor this page and remove the tabs soon, so not too
worried about making this fix perfect.

**test plan:**
Manual testing - loaded the page and it looks ok, and ran aXe a11y
audit, no more warnings about contrast. :)

(Flarnie will insert a screenshot)

**issue:**
checklist item on https://github.com/bvaughn/react/wiki/Gatsby-A11y-Fixes
2017-09-28 13:57:34 -07:00
Brian VaughnandGitHub 47a6ac525d Gatsby markdown cleanup (#10926)
* Removed unnecessary <script> tags from index.md

* Added gatsby-plugin-twitter rather than embedding <script> tags to load platform.twitter.com
2017-09-28 12:08:40 -07:00
Brian VaughnandGitHub 96fde8a09a Add new docs website (#10896)
Adds a new docs website, built with Gatsby JS, to replace the old Jekyll site. Source code for the new site lives in /www (although markdown and YML data still comes from the legacy /docs folder).

Changes to either markdown or website source code can be previewed on Netlify. The react-js bot should automatically add comments to each PR with preview links. (This preview is generated by running the newly-added yarn build:docs command in the root package.json.)

The majority of the changes in this PR are contained within the new /www directory. However some minor modifications have been made to existing content in the /docs directory:

* Modified frontmatter author block to always be an array
* Small markdown formatting tweaks
2017-09-28 10:18:04 -07:00
Matias LarssonandDan Abramov 803b493314 Add ReactEurope 2018 Conference (#10914) 2017-09-28 14:19:58 +01:00
Spencer MiskoviakandDan Abramov a58e99371d Remove apostrophe (#10807)
* Remove apostrophe

* Update printInclusive default documentation
2017-09-27 23:05:52 +01:00
Ivan BabakandDan Abramov 9f6f7b3520 Fix fragments docs example JSX typo (#10885)
Fixes https://github.com/facebook/react/issues/10883
2017-09-27 19:28:04 +01:00
Syed Fazle RahmanandDan Abramov f50ff7e5d1 Add link to React community on Hashnode (#10874)
* Add link to React community on Hashnode

React community on Hashnode has more than 10K followers. It'd be nice if we can point developers to this place.

* Consistency in heading + remove the sales pitch-y bit
2017-09-27 17:06:46 +01:00
Cody WallandDan Abramov 7811677a49 Minor update to portals docs "child" language (#10870)
* Update portals docs "child" language

This commit changes the portals docs so that the language of the Parent
no longer feels like it is missing a word with "is not a child the div
with onClick handler" and replaces that with "is not a direct child of
the div with the onClick handler".

closes #10868

* Update portals.md
2017-09-27 17:04:11 +01:00
Mario SchüttelandDan Abramov 6955414465 "Write Code in Your Editor": Split step 5 into 2 steps (#10832)
* "Write Code in Your Editor": Split step 5 into 2 steps

To me it wasn't clear (enough) that I had to copy the file's content from [here](https://codepen.io/gaearon/pen/oWWQNa?editors=0010) *and* add the three lines to the top.

* Update tutorial.md
2017-09-27 13:17:23 +01:00
LeslieandDan Abramov ccb2f82a83 Fix a few typos (#10860) 2017-09-27 11:13:21 +01:00
Toru KobayashiandDan Abramov 7c78a38182 Add a note about deprecating react-addons-perf (#10743)
* Add a note about deprecating react-addons-perf

* Update addons-perf.md
2017-09-27 11:12:39 +01:00
Youngchan JeandDan Abramov 1c77d4c0ff Fix typo on docs for React 16 (#10862) 2017-09-27 10:48:20 +01:00
Arthur GunnandDan Abramov 31eb1ba7c6 Update authors for v16 (#10861) 2017-09-27 10:24:16 +01:00
Dan AbramovandGitHub 9ce135f863 Minor doc edit 2017-09-26 22:23:20 +01:00
Dan AbramovandGitHub 138634f7da Update docs for React 16 (#10846) 2017-09-26 22:12:40 +01:00
Andrew ClarkandDan Abramov 706d2f4f9c Fix portal link (#10845) 2017-09-26 21:26:38 +01:00
Karl HorkyandDan Abramov 8b39991819 Update name of property initializer proposal (#10812)
The proposal for property initializers is called [Public Class Fields](https://tc39.github.io/proposal-class-public-fields/) now (part of the combined [Class Fields](https://github.com/tc39/proposal-class-fields) proposal).
2017-09-26 19:48:23 +01:00
SamuelandDan Abramov 04799590fc Update Portals Documentation (#10840)
* Update Portals Documentation

Correct some grammar to be more explicit and clear. Update example CodePen to better match code found in documentation. Update code example styles to match other code examples (ie. 'State and Lifecycle', 'Handling Events').

* Clean up comment to be accurate to example

There was a small comment overlooked when reviewing the documentation. This fixes it to be accurate to the example as well as grammatically correct.

* Update portals.md

* More fixes
2017-09-26 19:45:48 +01:00
Kaylee KnowlesandDan Abramov ba1396fb03 React.createPortal is not a function (#10843) 2017-09-26 19:41:30 +01:00
Dan AbramovandGitHub 26cf268541 Fix note formatting 2017-09-26 19:01:38 +01:00
Samuel ReedandDan Abramov 5120bf897c Doc change for prevContext removal in CDU (#10836)
* Doc change for prevContext removal in CDU

Ref: https://github.com/facebook/react/issues/8631

* Minor rewording
2017-09-26 18:29:35 +01:00
Dan AbramovandGitHub 893919f6a7 Fix React links on the website (#10837)
* Fix React links on the website

* Fix code editor

* Fix code editor, attempt 2
2017-09-26 18:20:41 +01:00
Andrew ClarkandGitHub 5f6326f356 Doc updates for React 16 + blog post (#10824)
* Doc updates for React 16 + blog post

* Add link to Sophie's post
2017-09-26 09:04:14 -07:00
Dan AbramovandGitHub 4de45cfbec Add Nate to authors on master 2017-09-26 11:41:02 +01:00
Dan AbramovandGitHub 9f8387a15f Add 15.6.2 blog post to master 2017-09-26 11:40:07 +01:00
Toru KobayashiandAndrew Clark b9d55695e1 Add ReactTestRenderer documentations (#10692)
* Add ReactTestRenderer documentations

* Add TestRenderer documentations

* TestRenderer is not experiment

* Add a link for jsdom

* Use ES Modules syntax

* Twaek

* Add a Link component

* Use Jest assertions

* Move a documentation for createNodeMock to Idea section

* Renamed

* Tweak

* Rename

* More explicit

* Add a usecase for createNodeMock
2017-09-26 00:30:56 -07:00
Sophie Alpert b765fb25eb Change license and remove references to PATENTS
Only remaining references:

```
docs/_posts/2014-10-28-react-v0.12.md
51:You can read the full text of the [LICENSE](https://github.com/facebook/react/blob/master/LICENSE) and [`PATENTS`](https://github.com/facebook/react/blob/master/PATENTS) files on GitHub.

docs/_posts/2015-04-17-react-native-v0.4.md
20:* **Patent Grant**: Many of you had concerns and questions around the PATENTS file. We pushed [a new version of the grant](https://code.facebook.com/posts/1639473982937255/updating-our-open-source-patent-grant/).

src/__mocks__/vendor/third_party/WebComponents.js
8: * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
```
2017-09-25 18:17:44 -07:00
Sophie Alpert d63249d034 Update license headers BSD+Patents -> MIT
Did find and replace in TextMate.

```
find: (?:( \*)( ))?Copyright (?:\(c\) )?(\d{4})\b.+Facebook[\s\S]+(?:this source tree|the same directory)\.$
replace: $1$2Copyright (c) $3-present, Facebook, Inc.\n$1\n$1$2This source code is licensed under the MIT license found in the\n$1$2LICENSE file in the root directory of this source tree.
```
2017-09-25 18:17:44 -07:00
Joe CritchleyandDan Abramov f9bfd08a02 Markdown fixs on "DOM Attributes in React 16" post (#10816) 2017-09-25 18:57:42 +02:00