You do this.
const handleEvent = e => {
setState(e.target.value);
console.log(state);
}
import { | |
RekognitionClient, | |
DetectFacesCommand, | |
DetectFacesCommandInput, | |
} from "@aws-sdk/client-rekognition"; | |
import imageUrlBuilder from "@sanity/image-url"; | |
import client, { SanityImageAssetDocument, Transaction } from "@sanity/client"; | |
import { default as nodeFetch } from "node-fetch"; | |
const SANITY_DATASET = "<my project dataset>"; |
const Discord = require('discord.js') | |
// your bot token | |
const token = 'NzM4MDk2NjA4NDQwNDgzODcw.XyG8CA.RbwIBFnAbrRDYOlTdLYgG_T4CMk' | |
const discordUsername = 'example#1234' | |
const roleToAdd = 'Cool Person' | |
const guildName = 'Your Guild Name' | |
function deferred() { | |
let resolve, reject |
#!/bin/bash | |
DAYS_SINCE_LAST_CHANGE=14 # If a project hasn't been touched in this long its node_modules will be deleted | |
SEARCH_PATH="./Git" # Update this to the path where your code is stored | |
TOTAL_BYTES_REMOVED=0 | |
Mb=1000000 | |
Kb=1000 | |
node_modules=$(find $SEARCH_PATH -name "node_modules" -type d -prune) |
// load your translations | |
// add whatever number namespaces you need | |
const localesNSContent = { | |
'en':[ | |
{ | |
content:fs.readFileSync(`src/locales/en/translations.json`, 'utf8'), | |
ns:'translations' | |
} | |
], | |
'pt':[ |
While the public API intended for users to use is the scheduler
package, the reconciler currently
does not use scheduler
's priority classes internally.
ReactFiberScheduler
has its own internal "mini-scheduler" that uses the scheduler
package
indirectly for its deadline-capable scheduleCallback.
This is kind of a documentation of implementation details that I suppose will be gone by the end of the year, but what can you do.
You are looking at the most important, and most abundant thing on the web. You can't see it, unfortunately, because it's very small… aaaaand it's invisible — so having a magnifying glass doesn't really help here. But still.
I'm talking, of course, about U+0020
; not to be confused with the band U2, who are just as ubiquitous, but far less useful.
This unicode point, representing the humble space character, is between every word, in every run of text, on every page of the web. And it has a very special characteristic: it's not sticky like glue. If two words are neighbors but there's not enough room for both of them, the space will free the second word to wrap around and start a new line.
Before getting into flexible containers, viewport meta tags, and @media
breakpoints this humble character is what makes the web fundamentally 'responsive'. That is: able to change the layout of its content to suit different devices, contexts, and settings. Browser text does this automa
import React from "react"; | |
import ReactDOM from "react-dom"; | |
import PropTypes from "prop-types"; | |
document.body.style.background = ` | |
linear-gradient(135deg, | |
#1e5799 0%, | |
#2989d8 50%, | |
#207cca 51%, | |
#7db9e8 100% |
function createStore (reducers) { | |
var state = reducers() | |
const store = { | |
dispatch: (action) => { | |
state = reducers(state, action) | |
}, | |
getState: () => { | |
return state | |
} | |
} |
|