Skip to content

Commit 02fb036

Browse files
merging all conflicts
2 parents f2d6bd8 + 1913f35 commit 02fb036

File tree

13 files changed

+57
-16
lines changed

13 files changed

+57
-16
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
lts/erbium
1+
12.16.1

content/blog/2013-10-16-react-v0.5.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ It's been awesome to see the things that people are building with React, and we
3434
* Added `React.version`.
3535
* Added `React.isValidClass` - Used to determine if a value is a valid component constructor.
3636
* 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`.
3838
* Began laying down work for refined performance analysis.
3939
* Better support for server-side rendering - [react-page](https://github.com/facebook/react-page) has helped improve the stability for server-side rendering.
4040
* 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.

content/docs/components-and-props.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,11 @@ function Comment(props) {
233233

234234
[](codepen://components-and-props/extracting-components-continued)
235235

236+
<<<<<<< HEAD
236237
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+
>>>>>>> 1913f358fcf4f8a6a602ddb8797f110b11901814
237241
238242
## A prop-ok csak olvashatók {#props-are-read-only}
239243

content/docs/faq-structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ React doesn't have opinions on how you put files into folders. That said there a
1212

1313
#### Grouping by features or routes {#grouping-by-features-or-routes}
1414

15-
One common way to structure projects is locate CSS, JS, and tests together inside folders grouped by feature or route.
15+
One common way to structure projects is to locate CSS, JS, and tests together inside folders grouped by feature or route.
1616

1717
```
1818
common/

content/docs/optimizing-performance.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,14 +371,16 @@ function updateColorMap(colormap) {
371371

372372
`updateColorMap` now returns a new object, rather than mutating the old one. `Object.assign` is in ES6 and requires a polyfill.
373373

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:
375375

376376
```js
377377
function updateColorMap(colormap) {
378378
return {...colormap, right: 'blue'};
379379
}
380380
```
381381

382+
This feature was added to JavaScript in ES2018.
383+
382384
If you're using Create React App, both `Object.assign` and the object spread syntax are available by default.
383385

384386
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.

content/docs/release-channels.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ title: Release Channels
44
permalink: docs/release-channels.html
55
layout: docs
66
category: installation
7+
prev: cdn-links.html
8+
next: hello-world.html
79
---
810

911
React relies on a thriving open source community to file bug reports, open pull requests, and [submit RFCs](https://github.com/reactjs/rfcs). To encourage feedback we sometimes share special builds of React that include unreleased features.

src/components/Container/Container.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const Container = ({children}: {children: Node}) => (
2222
paddingRight: 20,
2323
marginLeft: 'auto',
2424
marginRight: 'auto',
25-
2625
[media.greaterThan('medium')]: {
2726
width: '90%',
2827
},

src/components/LayoutHeader/Header.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,34 @@ const Header = ({location}: {location: Location}) => (
3333
display: 'none',
3434
},
3535
}}>
36+
<Container>
37+
<div
38+
css={{
39+
height: 60,
40+
fontSize: 20,
41+
padding: 20,
42+
textAlign: 'center',
43+
[media.between('small', 'large')]: {
44+
fontSize: 22,
45+
height: 60,
46+
},
47+
[media.lessThan('small')]: {
48+
height: 80,
49+
},
50+
[media.greaterThan('medium')]: {
51+
fontSize: 25,
52+
},
53+
}}>
54+
Black Lives Matter.{' '}
55+
<a
56+
style={{color: colors.brand}}
57+
target="_blank"
58+
rel="noopener"
59+
href="https://support.eji.org/give/153413/#!/donation/checkout">
60+
Support&nbsp;the&nbsp;Equal&nbsp;Justice&nbsp;Initiative.
61+
</a>
62+
</div>
63+
</Container>
3664
<Container>
3765
<div
3866
css={{

src/components/MarkdownHeader/MarkdownHeader.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ const MarkdownHeader = ({title}: {title: string}) => (
1515
css={{
1616
color: colors.dark,
1717
marginBottom: 0,
18-
marginTop: 40,
18+
marginTop: 100, // BLM
1919
...fonts.header,
2020

2121
[media.size('medium')]: {
22-
marginTop: 60,
22+
marginTop: 100, // BLM
2323
},
2424

2525
[media.greaterThan('large')]: {
26-
marginTop: 80,
26+
marginTop: 100, // BLM
2727
},
2828
}}>
2929
{title}

src/components/MarkdownPage/MarkdownPage.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ const MarkdownPage = ({
8484
<MarkdownHeader title={titlePrefix} />
8585

8686
{(date || hasAuthors) && (
87-
<div css={{marginTop: 15}}>
87+
<div
88+
css={{
89+
marginTop: 15,
90+
}}>
8891
{date}{' '}
8992
{hasAuthors && (
9093
<span>

0 commit comments

Comments
 (0)