npx create-expo-app@latest
npm run reset-project
rm -rf node_modules
npm i react-native-fast-encoder web-streams-polyfill @stardazed/streams-text-encoding react-native-fetch-api
- (optional)
echo "BROWSER=none # prevents browser from auto opening" >> .env
{ | |
// NORMAL SETTINGS | |
// =============== | |
"editor.quickSuggestions": { | |
"comments": "on", | |
"strings": "on", | |
"other": "on" | |
}, | |
"editor.suggestOnTriggerCharacters": true, | |
"editor.wordBasedSuggestions": true, |
- author::
- link:: rfcs/0000-first-class-support-for-promises.md at first-class-promises · acdlite/rfcs (github.com)
- extra tags:: #react #server #islands-architecture
React server components (initial proposal) was a so-so DX that solved an important problem: I want to render a React component on the server only, with APIs to easily fetch data for rendering.
- Pulls on islands architecture concepts (hi Astro.build!)
- Improves full-stack ergonomics
/* | |
Made by Elly Loel - https://ellyloel.com/ | |
With inspiration from: | |
- Josh W Comeau - https://courses.joshwcomeau.com/css-for-js/treasure-trove/010-global-styles/ | |
- Andy Bell - https://piccalil.li/blog/a-modern-css-reset/ | |
- Adam Argyle - https://unpkg.com/[email protected]/normalize.min.css / https://codepen.io/argyleink/pen/KKvRORE | |
Notes: | |
- `:where()` is used to lower specificity for easy overriding. | |
*/ |
Based on this blogpost.
To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.
Install with Homebrew:
$ brew install gpg
We are trying to combine the idea of SWR ("stale-while-revalidate") and React Suspense together, and this write-up covers all our findings from this journey.
When React Hooks launched, people started to rely on useEffect
to initiate data fetching:
function User () {
pico-8 cartridge // http://www.pico-8.com | |
version 29 | |
__lua__ | |
--hand cram | |
--by @andy_makes | |
--playable at https://andymakes.itch.io/hand-cram | |
--********************************** | |
--original, 557 char code |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
- Use ESM yourself. (preferred)
Useimport foo from 'foo'
instead ofconst foo = require('foo')
to import the package. You also need to put"type": "module"
in your package.json and more. Follow the below guide. - If the package is used in an async context, you could use
await import(…)
from CommonJS instead ofrequire(…)
. - Stay on the existing version of the package until you can move to ESM.