Mark Funk
58a86f6c6c
Link to "No Autobinding" section for ES6 classes.
...
There's a more descriptive section about the lack of Autobinding in ES6 classes and suggestions around it, so this commit adds a link to that section.
2016-03-29 13:19:38 -07:00
Dan Abramov
4910c3bcce
Merge pull request #6373 from mfunkie/patch-2
...
Update ES6 class documentation with binding perf
2016-03-29 20:58:16 +01:00
Mark Funk
fb13cf55fe
Update ES6 class documentation with binding perf
...
Adding a note in the ES6 class documentation about function binding. Recommending that you bind your handlers in the constructor so that they are referentially the same function every time render is invoked (helps with child components that might potentially call shouldComponentUpdate)
2016-03-29 12:51:57 -07:00
Dan Abramov
b666a44ce1
Merge pull request #6360 from cbrwizard/SyntheticKeyboardEvent_unit_tests
...
SyntheticKeyboardEvent unit tests
2016-03-29 20:35:06 +01:00
cbrwizard
d743a8dd55
SyntheticKeyboardEvent unit tests
...
Adds unit tests for SyntheticKeyboardEvent.
2016-03-29 22:28:11 +03:00
Richard
17683e0410
Warn if props obj passed into createElement / cloneElement inherits from anything other than Object
2016-03-29 20:21:39 +01:00
Paul O’Shannessy
22a3d0387b
Merge pull request #6337 from zpao/15-examples
...
Update examples for 15 (and other examples fixes)
2016-03-29 11:02:28 -07:00
Paul O’Shannessy
2baa3b7d2f
Update examples for v15
...
- Update commonjs example to use Babel 6
- Update click counter example to match other examples
- Update jquery example
- Stop shipping webcomponents.js in starter kit
2016-03-29 11:00:48 -07:00
Dan Abramov
7f01c47658
Fix whitespace in 0.14.8 blog entry
2016-03-29 18:31:48 +01:00
Dan Abramov
d7fe7ecca5
Merge pull request #6370 from gaearon/148-post
...
Blog post for React 0.14.8
2016-03-29 17:22:50 +01:00
Dan Abramov
96c0cd061e
Update README and CHANGELOG for 0.14.8
2016-03-29 17:07:21 +01:00
Dan Abramov
815d3514a7
Blog post for React 0.14.8
2016-03-29 16:47:11 +01:00
sottar
2890af02f1
Translate thinking-in-react.md to Japanese
2016-03-29 21:02:58 +09:00
Dan Abramov
291379c272
Elements from functional components in TestUtils should have no owner
...
Fixes #5292 and #6194
2016-03-28 21:46:33 +01:00
Philip Jackson
4687a03f54
Don't wrap drag events in IE/Edge in dev builds
...
Dev builds wrap synthetic events inside other events for a better debug
experience. However IE/Edge won't allow access to the
DataTransfer.dropEffect property if it's wrapped in this way.
The first time a drag event is fired, test if we're in an environment
that behaves this way and disable React's improved development
experience if we are.
2016-03-28 00:29:46 +13:00
Dan Abramov
a2780212ae
Merge branch 'andreypopp-patch-1'
2016-03-27 00:25:40 +00:00
Dan Abramov
ba76649c3b
Rename example package.json command for consistency with README
2016-03-27 00:25:29 +00:00
Boris Yankov
1018e50a1a
Add more information to 'Input elements must be either controlled or uncontrolled' warning
2016-03-25 16:36:48 +02:00
Jim
dcd092560d
Merge pull request #6305 from maherbeg/maher-error-find-dom-node
...
Test to verify findDOMNode does not throw in willMount
2016-03-24 18:59:55 -07:00
Maher Beg
70de7e4a38
Test to verify findDOMNode does not throw in willMount
...
Adds a test to prevent a regression of throwing an error when
calling `findDOMNode(this)` in a component's `componentWillMount`
function. This previously used to throw an invariant violation but
now does not any more.
2016-03-24 18:06:27 -07:00
Paul O’Shannessy
9358ce3b02
Merge pull request #6332 from kentcdodds/pr/beginner-friendly
...
add beginner friendly resource for learning how to PR
2016-03-24 16:07:01 -07:00
Paul O’Shannessy
6a8ebfc418
Merge pull request #6331 from zpao/isonpmorphic
...
Make Browserify-specific modules to remove DOM dependencies from npm package
2016-03-24 16:01:51 -07:00
Paul O’Shannessy
d17091ddeb
Make Browserify-specific modules to remove DOM dependencies from npm package
2016-03-24 15:28:52 -07:00
Paul O’Shannessy
ae2a7c723f
Merge pull request #6333 from kentcdodds/pr/beginner-friendly-badge
...
add prs welcome badge
2016-03-24 14:58:15 -07:00
Kent C. Dodds
6b307a55fb
add prs welcome badge
2016-03-24 14:18:32 -06:00
Kent C. Dodds
f0dbc1e1d3
add beginner friendly resource for learning how to PR
2016-03-24 13:20:18 -06:00
Jim
e119f20927
Merge pull request #6330 from speedskater/patch-1
...
Updated react conf links
2016-03-24 08:57:21 -07:00
Jim
414f057bc2
Merge pull request #6296 from jontewks/add-warnings
...
Add warnings for onFocusIn and onFocusOut props
2016-03-24 08:37:45 -07:00
speedskater
c212226fff
Updated react conf links
...
* Added React Conf 2016
* Fixed Links for React Conf 2015
2016-03-24 08:11:35 +01:00
Jim
d8ee071c92
Merge pull request #6195 from mxstbr/perf-links
...
Add benchling engineering articles about perf to docs
2016-03-23 16:47:42 -07:00
Dan Abramov
f80f2379cd
Merge pull request #6326 from gaearon/fix-test
...
Fix ReactPerf.printOperations() test to work with createElement = false
2016-03-23 22:58:20 +00:00
Dan Abramov
0f1240e877
Fix ReactPerf.printOperations() test to work with createElement = false
2016-03-23 22:24:32 +00:00
Paul O’Shannessy
5e770f4d2d
Merge pull request #6191 from strawbrary/edit-on-github-position
...
[docs] keep position of "Edit on GitHub" link fixed
2016-03-23 12:24:16 -07:00
Paul O’Shannessy
bfb9444300
Merge pull request #6242 from edvinerikson/add-origin-to-css-warnings
...
added component name to css property warnings
2016-03-23 12:12:51 -07:00
Dan Abramov
f5a9fb378d
Add missing set -e to Travis builds
...
Fixes #6150 , corrects a mistake made in d138b286db
2016-03-23 18:59:59 +00:00
Dan Abramov
1e8156143a
Merge pull request #6310 from gaearon/setstate-warning
...
Add more specific error messages for bad callback in setState, replaceState, and ReactDOM.render
2016-03-23 14:50:36 +00:00
Jim
75c2b6ab59
Merge pull request #6257 from terry3/highlight-not-working
...
Highlight 'NOT' word in example page.
2016-03-22 22:54:48 -07:00
terry3
7169da21ba
Highlight 'NOT' word in example page.
2016-03-23 09:19:58 +08:00
Jon Tewksbury
a7fae7e4c7
Add warnings for onFocusIn and onFocusOut props
2016-03-21 17:22:37 -07:00
Jim
c528732504
Merge pull request #6307 from cbrwizard/getEventCharCode_unit_tests
...
getEventCharCode unit tests
2016-03-21 16:17:06 -07:00
Dan Abramov
af4fe68b14
Change message format to be more consistent with other errors
2016-03-21 23:13:47 +00:00
Dan Abramov
d4657b8331
Add bad callback invariants to ReactDOM.render() calls
2016-03-21 22:33:15 +00:00
Paul O’Shannessy
d433c2f376
Merge pull request #6313 from jimfb/script-integrity-attribute
...
Removed script security attributes, since fb.me isn't setting the proper headers.
2016-03-21 15:19:16 -07:00
Jim
8b026f901c
Removed script security attributes, since fb.me isn't setting the proper headers.
2016-03-21 15:06:08 -07:00
Paul O’Shannessy
39ccdccef1
Merge pull request #6312 from vjeux/fix_docs_jump
...
[website] Fix jump on the header
2016-03-21 14:44:57 -07:00
Dan Abramov
ebe5128489
Use specific method names in error messages
2016-03-21 21:40:17 +00:00
Dan Abramov
552f00b536
Make setState() callback error message more descriptive
...
Fixes #6306
2016-03-21 21:24:19 +00:00
Christopher Chedeau
fe617082d9
[website] Fix jump on the header
...
Algolia adds two inline styles
```css
position: relative;
vertical-align: top;
```
to the element once the script inserted at the end of the page runs which super slightly moves the header. The fix is to always apply those two rules this way it doesn't jump. I did not notice it on my machine because it doesn't move when custom fonts are not being used.
Test Plan:
- Open two tabs: reactjs.com and localhost:4000/react
- Click around on reactjs.com to prime the cache with the fonts
- Switch tabs and click around on localhost (but do not force refresh!)
- Now you get custom fonts loaded locally and it doesn't jump when you change tabs
2016-03-21 14:12:20 -07:00
Paul O’Shannessy
40c4635e17
Merge pull request #6303 from qerub/use-loose-envify
...
Use loose-envify instead of envify
2016-03-21 12:24:46 -07:00
Christoffer Sawicki
ecf824cc2a
Use loose-envify instead of envify
...
This reduces the number of transitive dependencies and decreases the build time (by ~6% on my machine).
2016-03-21 20:18:17 +01:00