- Put the patch in
.yarn/patches
folder. - Add the patch in
resolutions
of package.json. - Make sure both files are committed to the repo.
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 { Route, Routes } from 'react-router-dom' | |
function AppRoutes() { | |
return ( | |
<Routes> | |
<Route index={true} element={<Home />} /> | |
<Route path="settings" element={<Settings />}> | |
<Route path="people" element={<PeopleSettings />}> | |
<Route path=":userId" element={<PersonSettings />} /> | |
</Route> |
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 React from 'react' | |
import { useRouteMatch } from 'react-router-dom' | |
import { statusTypes } from '@youversion/react' // Helper object for status enums 'pending', 'idle', 'resolved', 'rejected' | |
import { getThing } from './api-methods' | |
function MyComponent() { | |
const { path } = useRouteMatch() | |
const [loadingStatus, setLoadingStatus] = React.useState(statusTypes.PENDING) | |
const [data, setData] = React.useState() |
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
/** | |
* Requires jsdoc and jsdoc-to-markdown | |
*/ | |
/* eslint-disable no-console */ | |
const fs = require('fs') | |
const path = require('path') | |
const glob = require('glob') | |
const { execSync } = require('child_process') | |
const jsdoc2md = require('jsdoc-to-markdown') |
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
[ | |
{ | |
"metadata": { | |
"id": "d3836729-9cc1-42c1-b2af-d50071f57d29", | |
"publisherId": "formulahendry.auto-close-tag", | |
"publisherDisplayName": "formulahendry" | |
}, | |
"name": "auto-close-tag", | |
"publisher": "formulahendry", | |
"version": "0.5.8" |
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
{ | |
"terminal.integrated.rendererType": "dom", | |
"emmet.includeLanguages": { | |
"erb": "html", | |
"ruby": "html", | |
"html.erb": "html", | |
"javascript": "javascriptreact", | |
"marko": "html" | |
}, | |
"emmet.triggerExpansionOnTab": true, |
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
Show hidden characters
// Place in the snippets folder of vscode | |
{ | |
// shortcode: impc | |
// Creates an empty React function component with a common set of items, like imports and proptypes | |
// Tab stop 1 is the function name | |
// Tab stop 2 is for props | |
"Create empty component": { | |
"scope": "javascript", |
I hereby claim:
- I am arinthros on github.
- I am arinthros (https://keybase.io/arinthros) on keybase.
- I have a public key ASBxUxy-3sWKiamVTQ_DOckQBIosKxX9xdR-Yy5cOOWQoAo
To claim this, I am signing this object: