PropsWithChildren allows you to define props within a children prop
import {PropsWithChildren} from 'react';PropsWithChildren allows you to define props within a children prop
import {PropsWithChildren} from 'react';at its root, a promise is an object to which you attach callbacks. these callbacks happen once the 'value' property changes.
example with callback
function successCallback(result) {
console.log('Audio file ready at URL: ' + result);
}
function failureCallback(error) {we look often at the rhythms of social interaction rather than the content of those interactions
belonging needs continually to be refreshed and reinforced, like telling your partner you love them.
spurs' coach papavich - masterful at connecting the team, "hug em and hold em" he says, uses food and wine as a bridge to build relationships. but what about when he has to give bad feedback to the players?
| export const copyToClipBoard = async (copyText: string): Promise<boolean> => { | |
| if (navigator.clipboard) { | |
| try { | |
| await navigator.clipboard.writeText(copyText); | |
| return true; | |
| } catch (err) { | |
| throw err; | |
| } | |
| } | |
| // Legacy fallback |
design patterns in code = tropes in storytelling (ex: the story pattern of the "heroes journey)
decomposition and generalization` and how theyre expressed in UML class diagrams with:alias show-hidden-files='defaults write com.apple.finder AppleShowAllFiles TRUE' alias hide-hidden-files='defaults write com.apple.finder AppleShowAllFiles FALSE'
alias subl='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl' alias st='/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl'
3 areas: