Skip to content

Commit deb69fb

Browse files
committed
Fix merge conflicts
1 parent d2dc660 commit deb69fb

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

src/components/MDX/Sandpack/DownloadButton.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,8 @@
22
* Copyright (c) Facebook, Inc. and its affiliates.
33
*/
44

5-
<<<<<<< HEAD
6-
import {useSandpack} from '@codesandbox/sandpack-react';
7-
import {useSyncExternalStore} from 'react';
8-
=======
9-
import {useSyncExternalStore} from 'react';
105
import {useSandpack} from '@codesandbox/sandpack-react/unstyled';
11-
>>>>>>> bdc60c26848820239db732b7218d41f4c2b204af
6+
import {useSyncExternalStore} from 'react';
127
import {IconDownload} from '../../Icon/IconDownload';
138
export interface DownloadButtonProps {}
149

src/content/learn/preserving-and-resetting-state.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -932,11 +932,7 @@ Painetaan "Seuraava pelaaja" uudelleen
932932

933933
</DiagramGroup>
934934

935-
<<<<<<< HEAD
936-
Kunkin `Counter`:n tila tuhotaan joka kerta kun sen poistetaan DOM:sta. Tämän takia ne nollautuvat joka kerta kun painat painiketta.
937-
=======
938-
Each `Counter`'s state gets destroyed each time it's removed from the DOM. This is why they reset every time you click the button.
939-
>>>>>>> bdc60c26848820239db732b7218d41f4c2b204af
935+
Kunkin `Counter`:n tila tuhotaan joka kerta kun se poistetaan DOM:sta. Tämän takia ne nollautuvat joka kerta kun painat painiketta.
940936

941937
Tämä ratkaisu on kätevä, kun sinulla on vain muutamia riippumattomia komponentteja, jotka renderöidään samassa paikassa. Tässä esimerkissä sinulla on vain kaksi, joten ei ole hankalaa renderöidä molemmat erikseen JSX:ssä.
942938

0 commit comments

Comments
 (0)