This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { FixedSizeList as List } from "react-window"; | |
const App = () => { | |
const [data, setData] = useState(() => | |
Array.from({ length: 10000 }, faker.address.city) | |
); | |
const reverse = () => { | |
setData((data) => data.slice().reverse()); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"clean": "rimraf outline solid package *.tgz", | |
"export": "figma-export use-config figma.config.js", | |
"test": "node test.js", | |
"build": "run-s clean export", | |
"np": "np", | |
"release": "run-s build np" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git status | |
On branch ts-setup | |
$ git checkout -b migrate-components # checkout from ts-setup | |
$ mv components/Button.jsx components/Button.tsx | |
$ git add . && git commit -m 'Migrate button to TS' | |
$ git push -u origin migrate-components |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
firebase-debug.log* | |
firestore-debug.log* | |
ui-debug.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// src/firebase.js | |
import firebase from 'firebase/app'; | |
import 'firebase/auth'; | |
import 'firebase/firestore'; | |
// TODO: Use a configuration object | |
firebaseApp.initializeApp({ | |
projectId: '', | |
appId: '', |