You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/blog/2013-10-16-react-v0.5.0.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ It's been awesome to see the things that people are building with React, and we
34
34
* Added `React.version`.
35
35
* Added `React.isValidClass` - Used to determine if a value is a valid component constructor.
36
36
* Removed `React.autoBind` - This was deprecated in v0.4 and now properly removed.
37
-
* Renamed `React.unmountAndReleaseReactRootNode` to `React.unmountComponentAtNode`.
37
+
* Renamed `React.unmountAndReleaseReactRootNode` to `React.unmountComponentAtNode`.
38
38
* Began laying down work for refined performance analysis.
39
39
* Better support for server-side rendering - [react-page](https://github.com/facebook/react-page) has helped improve the stability for server-side rendering.
40
40
* Made it possible to use React in environments enforcing a strict [Content Security Policy](https://developer.mozilla.org/en-US/docs/Security/CSP/Introducing_Content_Security_Policy). This also makes it possible to use React to build Chrome extensions.
Copy file name to clipboardExpand all lines: content/blog/2016-07-13-mixins-considered-harmful.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -607,7 +607,7 @@ var Button = React.createClass({
607
607
608
608
Sometimes people use mixins to selectively add logging to lifecycle methods in some components. In the future, we intend to provide an [official DevTools API](https://github.com/facebook/react/issues/5306) that would let you implement something similar without touching the components. However it’s still very much a work in progress. If you heavily depend on logging mixins for debugging, you might want to keep using those mixins for a little longer.
609
609
610
-
If you can’t accomplish something with a component, a higher-order component, or a utility module, it could be mean that React should provide this out of the box. [File an issue](https://github.com/facebook/react/issues/new) to tell us about your use case for mixins, and we’ll help you consider alternatives or perhaps implement your feature request.
610
+
If you can’t accomplish something with a component, a higher-order component, or a utility module, it could mean that React should provide this out of the box. [File an issue](https://github.com/facebook/react/issues/new) to tell us about your use case for mixins, and we’ll help you consider alternatives or perhaps implement your feature request.
611
611
612
612
Mixins are not deprecated in the traditional sense. You can keep using them with `React.createClass()`, as we won’t be changing it further. Eventually, as ES6 classes gain more adoption and their usability problems in React are solved, we might split `React.createClass()` into a separate package because most people wouldn’t need it. Even in that case, your old mixins would keep working.
Copy file name to clipboardExpand all lines: content/blog/2020-02-26-react-v16.13.0.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -204,6 +204,6 @@ Refer to the documentation for [detailed installation instructions](/docs/instal
204
204
- Adjust `SuspenseList` CPU bound heuristic ([@sebmarkbage](https://github.com/sebmarkbage) in [#17455](https://github.com/facebook/react/pull/17455))
205
205
- Add missing event plugin priorities ([@trueadm](https://github.com/trueadm) in [#17914](https://github.com/facebook/react/pull/17914))
206
206
- Fix `isPending` only being true when transitioning from inside an input event ([@acdlite](https://github.com/acdlite) in [#17382](https://github.com/facebook/react/pull/17382))
207
-
- Fix `React.memo` components dropping updates when interrupted by a higher priority update ([@acdlite](<(https://github.com/acdlite)>) in [#18091](https://github.com/facebook/react/pull/18091))
207
+
- Fix `React.memo` components dropping updates when interrupted by a higher priority update ([@acdlite](https://github.com/acdlite) in [#18091](https://github.com/facebook/react/pull/18091))
208
208
- Don't warn when suspending at the wrong priority ([@gaearon](https://github.com/gaearon) in [#17971](https://github.com/facebook/react/pull/17971))
209
209
- Fix a bug with rebasing updates ([@acdlite](https://github.com/acdlite) and [@sebmarkbage](https://github.com/sebmarkbage) in [#17560](https://github.com/facebook/react/pull/17560), [#17510](https://github.com/facebook/react/pull/17510), [#17483](https://github.com/facebook/react/pull/17483), [#17480](https://github.com/facebook/react/pull/17480))
Copy file name to clipboardExpand all lines: content/community/team.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,14 +38,6 @@ Brian studied art in college and did programming on the side to pay for his educ
38
38
39
39
Dan got into programming after he accidentally discovered Visual Basic inside Microsoft PowerPoint. He has found his true calling in turning [Sebastian](#sebastian-markbage)'s tweets into long-form blog posts. Dan occasionally wins at Fortnite by hiding in a bush until the game ends.
40
40
41
-
### Dominic Gannaway {#dominic-gannaway}
42
-
43
-

44
-
45
-
[@trueadm on GitHub](https://github.com/trueadm)·[@trueadm on Twitter](https://twitter.com/trueadm)
46
-
47
-
Dominic is interested in travelling, drum and bass, stand-up comedy and spending time with the family. He most enjoys hacking on new unexplored ideas around UIs and accessibility and has a passion for tweaking and optimizing code to get the most performance out of things.
48
-
49
41
### Luna Ruan {#luna-ruan}
50
42
51
43

@@ -62,6 +54,14 @@ Luna learned programming because she thought it meant creating video games. Inst
62
54
63
55
Rachel wrote a [book about UI animation](https://abookapart.com/products/animation-at-work) once and worked with MDN and the W3C on the web animations API. Now she is busy with education materials and community engineering on the React team. Secretly, she is an award-winning cartoonist for teenage girls. Catch her making fancy tea with lukewarm water in the microkitchen.
64
56
57
+
### Rick Hanlon {#rick-hanlon}
58
+
59
+

60
+
61
+
[@rickhanlonii on GitHub](https://github.com/rickhanlonii)·[@rickhanlonii on Twitter](https://twitter.com/rickhanlonii)
62
+
63
+
Ricky majored in theoretical math and somehow found himself on the React Native team for a couple years before joining the React team. When he's not programming you can find him snowboarding, biking, climbing, golfing, or closing GitHub issues that do not match the issue template.
64
+
65
65
### Sebastian Markbåge {#sebastian-markbage}
66
66
67
67

@@ -70,13 +70,11 @@ Rachel wrote a [book about UI animation](https://abookapart.com/products/animati
70
70
71
71
Sebastian majored in psychology. He's usually quiet. Even when he says something, it often doesn't make sense to the rest of us until a few months later. The correct way to pronounce his surname is "mark-boa-geh" but he settled for "mark-beige" out of pragmatism -- and that's how he approaches React.
72
72
73
-
### Yuzhi Zheng {#yuzhi-zheng}
74
-
75
-

73
+
### Seth Webster {#seth-webster}
76
74
77
-
[@yuzhi on GitHub](https://github.com/yuzhi)·[@yuzhiz on Twitter](https://twitter.com/yuzhiz)
75
+

78
76
79
-
Yuzhi studied Computer Science in school. She liked the instant gratification of seeing code come to life without having to physically be in a laboratory. Now she manages the React team. Before management, she used to work on the Relay data fetching framework. In her spare time, Yuzhi enjoys optimizing her life via gardening and home improvement projects.
77
+
Seth started programming as a kid growing up in Tucson, AZ. After school, he was bitten by the music bug and was a touring musician for about 10 years before returning to *work*, starting with Intuit. In his spare time, he loves [taking pictures](https://www.sethwebster.com) and flying for animal rescues in the northeastern United States.
80
78
81
79
## Acknowledgements {#acknowledgements}
82
80
@@ -93,6 +91,7 @@ React was originally created by [Jordan Walke](https://github.com/jordwalke). To
93
91
*[Christoph Nakazawa](https://github.com/cpojer)
94
92
*[Christopher Chedeau](https://github.com/vjeux)
95
93
*[Clement Hoang](https://github.com/clemmy)
94
+
*[Dominic Gannaway](https://github.com/trueadm)
96
95
*[Flarnie Marchan](https://github.com/flarnie)
97
96
*[Jason Quense](https://github.com/jquense)
98
97
*[Jesse Beach](https://github.com/jessebeach)
@@ -114,6 +113,7 @@ React was originally created by [Jordan Walke](https://github.com/jordwalke). To
A komponensek kivonása elsőre morgós munkának tűnhet, de nagyobb alkalmazások esetén gyorsan megtérül ha egy újrafelhasználható komponens palettával rendelkezünk. Egy jó ökölszabály ha a felhasználói kezelőfelületed valamelyik része többször fel van használva (`Button`, `Panel`, `Avatar`), vagy elég bonyolult saját magában is (`App`, `FeedStory`, `Comment`) akkor jó jelölt lehet egy újrafelhasználható komponensnek.
238
+
=======
239
+
Extracting components might seem like grunt work at first, but having a palette of reusable components pays off in larger apps. A good rule of thumb is that if a part of your UI is used several times (`Button`, `Panel`, `Avatar`), or is complex enough on its own (`App`, `FeedStory`, `Comment`), it is a good candidate to be extracted to a separate component.
240
+
>>>>>>> ee75c297574468f888574aae2d9620d64bb5b5a1
237
241
238
242
## A prop-ok csak olvashatók {#props-are-read-only}
Copy file name to clipboardExpand all lines: content/docs/conditional-rendering.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,11 @@ Változók deklarálása és `if` utasítások használata teljesen rendben van
122
122
123
123
### Helyben kifejtett if logikai && operátorral {#inline-if-with-logical--operator}
124
124
125
+
<<<<<<< HEAD
125
126
Kapcsos zárójelekkel bármilyen [kifejezést JSX-be tudsz ágyazni](/docs/introducing-jsx.html#embedding-expressions-in-jsx). Ez magába foglalja a logikai `&&` operátort is. Hasznos lehet ha egy elemet feltételesen szeretnénk mutatni:
127
+
=======
128
+
You may [embed expressions in JSX](/docs/introducing-jsx.html#embedding-expressions-in-jsx) by wrapping them in curly braces. This includes the JavaScript logical `&&` operator. It can be handy for conditionally including an element:
Copy file name to clipboardExpand all lines: content/docs/optimizing-performance.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -371,14 +371,16 @@ function updateColorMap(colormap) {
371
371
372
372
`updateColorMap` now returns a new object, rather than mutating the old one. `Object.assign` is in ES6 and requires a polyfill.
373
373
374
-
There is a JavaScript proposal to add [object spread properties](https://github.com/sebmarkbage/ecmascript-rest-spread) to make it easier to update objects without mutation as well:
374
+
[Object spread syntax](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax) makes it easier to update objects without mutation as well:
375
375
376
376
```js
377
377
functionupdateColorMap(colormap) {
378
378
return {...colormap, right:'blue'};
379
379
}
380
380
```
381
381
382
+
This feature was added to JavaScript in ES2018.
383
+
382
384
If you're using Create React App, both `Object.assign` and the object spread syntax are available by default.
383
385
384
386
When you deal with deeply nested objects, updating them in an immutable way can feel convoluted. If you run into this problem, check out [Immer](https://github.com/mweststrate/immer) or [immutability-helper](https://github.com/kolodny/immutability-helper). These libraries let you write highly readable code without losing the benefits of immutability.
0 commit comments