Skip to content

Commit c3d681f

Browse files
committed
Remove unnecessary spaces from passing-data-deeply-with-context.md
1 parent 0bfd418 commit c3d681f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/content/learn/passing-data-deeply-with-context.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ You didn't do anything special for this to work. A `Section` specifies the conte
838838
839839
How context works might remind you of [CSS property inheritance.](https://developer.mozilla.org/en-US/docs/Web/CSS/inheritance) In CSS, you can specify `color: blue` for a `<div>`, and any DOM node inside of it, no matter how deep, will inherit that color unless some other DOM node in the middle overrides it with `color: green`. Similarly, in React, the only way to override some context coming from above is to wrap children into a context provider with a different value.
840840
841-
In CSS, different properties like `color` and `background-color` don't override each other. You can set all `<div>`'s `color` to red without impacting `background-color`. Similarly, **different React contexts don't override each other.** Each context that you make with `createContext()` is completely separate from other ones, and ties together components using and providing *that particular* context. One component may use or provide many different contexts without a problem.
841+
In CSS, different properties like `color` and `background-color` don't override each other. You can set all `<div>`'s `color` to red without impacting `background-color`. Similarly, **different React contexts don't override each other.** Each context that you make with `createContext()` is completely separate from other ones, and ties together components using and providing *that particular* context. One component may use or provide many different contexts without a problem.
842842
843843
## Before you use context {/*before-you-use-context*/}
844844
@@ -963,27 +963,27 @@ export const places = [{
963963
description: 'The tradition of choosing bright colors for houses began in the late 20th century.',
964964
imageId: 'K9HVAGH'
965965
}, {
966-
id: 1,
966+
id: 1,
967967
name: 'Rainbow Village in Taichung, Taiwan',
968968
description: 'To save the houses from demolition, Huang Yung-Fu, a local resident, painted all 1,200 of them in 1924.',
969969
imageId: '9EAYZrt'
970970
}, {
971-
id: 2,
971+
id: 2,
972972
name: 'Macromural de Pachuca, Mexico',
973973
description: 'One of the largest murals in the world covering homes in a hillside neighborhood.',
974974
imageId: 'DgXHVwu'
975975
}, {
976-
id: 3,
976+
id: 3,
977977
name: 'Selarón Staircase in Rio de Janeiro, Brazil',
978978
description: 'This landmark was created by Jorge Selarón, a Chilean-born artist, as a "tribute to the Brazilian people."',
979979
imageId: 'aeO3rpI'
980980
}, {
981-
id: 4,
981+
id: 4,
982982
name: 'Burano, Italy',
983983
description: 'The houses are painted following a specific color system dating back to 16th century.',
984984
imageId: 'kxsph5C'
985985
}, {
986-
id: 5,
986+
id: 5,
987987
name: 'Chefchaouen, Marocco',
988988
description: 'There are a few theories on why the houses are painted blue, including that the color repels mosquitos or that it symbolizes sky and heaven.',
989989
imageId: 'rTqKo46'
@@ -1102,27 +1102,27 @@ export const places = [{
11021102
description: 'The tradition of choosing bright colors for houses began in the late 20th century.',
11031103
imageId: 'K9HVAGH'
11041104
}, {
1105-
id: 1,
1105+
id: 1,
11061106
name: 'Rainbow Village in Taichung, Taiwan',
11071107
description: 'To save the houses from demolition, Huang Yung-Fu, a local resident, painted all 1,200 of them in 1924.',
11081108
imageId: '9EAYZrt'
11091109
}, {
1110-
id: 2,
1110+
id: 2,
11111111
name: 'Macromural de Pachuca, Mexico',
11121112
description: 'One of the largest murals in the world covering homes in a hillside neighborhood.',
11131113
imageId: 'DgXHVwu'
11141114
}, {
1115-
id: 3,
1115+
id: 3,
11161116
name: 'Selarón Staircase in Rio de Janeiro, Brazil',
11171117
description: 'This landmark was created by Jorge Selarón, a Chilean-born artist, as a "tribute to the Brazilian people".',
11181118
imageId: 'aeO3rpI'
11191119
}, {
1120-
id: 4,
1120+
id: 4,
11211121
name: 'Burano, Italy',
11221122
description: 'The houses are painted following a specific color system dating back to 16th century.',
11231123
imageId: 'kxsph5C'
11241124
}, {
1125-
id: 5,
1125+
id: 5,
11261126
name: 'Chefchaouen, Marocco',
11271127
description: 'There are a few theories on why the houses are painted blue, including that the color repels mosquitos or that it symbolizes sky and heaven.',
11281128
imageId: 'rTqKo46'

0 commit comments

Comments
 (0)