Skip to content

Instantly share code, notes, and snippets.

View indreklasn's full-sized avatar
👋

Trevor I. Lasn indreklasn

👋
View GitHub Profile
import { FixedSizeList as List } from 'react-window';
const Row = ({ index, style }) => (
<div style={style}>Row {index}</div>
);
const Example = () => (
<List
height={150}
itemCount={1000}
const person = {
name: "Indrek",
age: 26,
pets: {
name: "Simmo",
type: "cat",
age: 8.5
}
}
const person = {
name: "Indrek",
age: 26,
pets: {
name: "Simmo",
type: "cat",
age: 8.5
}
}
const person = {
id: "4xerfdf4",
}
if (person.id || person.hasPermit) {
console.log("You're allowed to pass!")
}
const person = {
id: "4xerfdf4",
hasPermit: true,
}
if (person.id || person.hasPermit) {
console.log("You're allowed to pass!")
}
const person = {
id: "4xerfdf4",
hasPermit: true,
}
if (person.id || hasPermit) {
console.log("You're allowed to pass!"
}
if (hasName && hasSurname && favouriteDrink === "water") {
console.log(hasName, hasSurname, favouriteDrink)
}
if (hasName && hasSurname && favouriteDrink === "water") {
console.log(hasName, hasSurname, favouriteDrink)
}
if (hasName) {
if (hasSurname) {
if (favouriteDrink === "water") {
console.log(hasName, hasSurname, favouriteDrink)
}
}
}
if (hasName) {
if (hasSurname) {
if (favouriteDrink === "water") {
console.log(hasName, hasSurname, favouriteDrink)
}
}
}