Skip to content

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
mirorauhala committed Oct 2, 2023
1 parent d2dc660 commit deb69fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
7 changes: 1 addition & 6 deletions src/components/MDX/Sandpack/DownloadButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@
* Copyright (c) Facebook, Inc. and its affiliates.
*/

<<<<<<< HEAD
import {useSandpack} from '@codesandbox/sandpack-react';
import {useSyncExternalStore} from 'react';
=======
import {useSyncExternalStore} from 'react';
import {useSandpack} from '@codesandbox/sandpack-react/unstyled';
>>>>>>> bdc60c26848820239db732b7218d41f4c2b204af
import {useSyncExternalStore} from 'react';
import {IconDownload} from '../../Icon/IconDownload';
export interface DownloadButtonProps {}

Expand Down
6 changes: 1 addition & 5 deletions src/content/learn/preserving-and-resetting-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -932,11 +932,7 @@ Painetaan "Seuraava pelaaja" uudelleen

</DiagramGroup>

<<<<<<< HEAD
Kunkin `Counter`:n tila tuhotaan joka kerta kun sen poistetaan DOM:sta. Tämän takia ne nollautuvat joka kerta kun painat painiketta.
=======
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.
>>>>>>> bdc60c26848820239db732b7218d41f4c2b204af
Kunkin `Counter`:n tila tuhotaan joka kerta kun se poistetaan DOM:sta. Tämän takia ne nollautuvat joka kerta kun painat painiketta.

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

Expand Down

0 comments on commit deb69fb

Please sign in to comment.