Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/mlaursen/vim-react-snippets

Useful snippets for developing in React (Javascript and Typescript)
https://github.com/mlaursen/vim-react-snippets

fix(typescript): fixed unnamed inline test queries

383abba5d6835eced72c89bbcdfa63295d803f88 authored about 1 year ago by Mikkel Laursen <[email protected]>
docs(README): reorder snippets again

740d50d04fc8baab49ea786848818f1b6db81f71 authored about 1 year ago by Mikkel Laursen <[email protected]>
docs(README): really simplify docs for Typescript preference

58e47974d63598b172a032c19954c67ecca2d6bd authored about 1 year ago by Mikkel Laursen <[email protected]>
docs(README): de-prioritize javascript since I only use Typescript

37c6d3c2d17ab351a9a0f7ce11273887eeaf71f3 authored about 1 year ago by Mikkel Laursen <[email protected]>
build(workflow): remove dependabot

I never use it. It isn't quite depend..able.

661dd0da742f4092dd9117b9dcd1cd18df78a604 authored about 1 year ago by Mikkel Laursen <[email protected]>
feat(test): update getByTestId to mirror const name

2eb371aa7f092283ee63a6bdaaf01f48813bf75c authored about 1 year ago by Mikkel Laursen <[email protected]>
feat(test): add unnamed role queries

82bdccf59b97abf03001df7982f9d35d0d4feb31 authored about 1 year ago by Mikkel Laursen <[email protected]>
feat(typescript)!: use inline type imports

f4b1c70d26f4c3ae224db6a0a04597094bd51f55 authored about 1 year ago by Mikkel Laursen <[email protected]>
build(deps): bump prettier to latest

7e424d4aa450315e63a958a0b020abc4bba39292 authored about 1 year ago by Mikkel Laursen <[email protected]>
chore: add expect not called snippet and remove non-working inline snippets

dbf0c856a8e8889412144d8fdd49837384818c5f authored over 1 year ago by Mikkel Laursen <[email protected]>
feat(test): add expect called with/times snippets

cc228411da8cbeda668933d2dd8b5da5a9b130b0 authored over 1 year ago by Mikkel Laursen <[email protected]>
fix(test): force line beginning for expect to throw

ed2d0c0cbb951814ba6496ef4ef6fa7abefe1ed7 authored over 1 year ago by Mikkel Laursen <[email protected]>
fix(test): inline versions of getByText/getByTestId

07c285799fa4b017c5aad336e535dd2010294d21 authored over 1 year ago by Mikkel Laursen <[email protected]>
feat(test): add screen.getByText and screen.getByTestId snippets

b54ad78098158db06dcf03e8e087de7068f74faa authored over 1 year ago by Mikkel Laursen <[email protected]>
docs: fix getByRole snippet in README

dd64456beca0d7ff70faa4ec049ca42750592f77 authored over 1 year ago by Mikkel Laursen <[email protected]>
feat(test): added additional test snippets

744eb8ce6a3dd25ce10a6dcaa34087ebef62874a authored over 1 year ago by Mikkel Laursen <[email protected]>
chore(test)!: rename ait -> ita

bec13ea2835519e489fc108f062b956db1ba9b99 authored over 1 year ago by Mikkel Laursen <[email protected]>
build(dev-deps): bump dev dependencies to latest

f872e360157a797c80453d06db42ea7df9c0c357 authored over 1 year ago by Mikkel Laursen <[email protected]>
fix(useMemo): useM and useMR changes for inline snippets

cb1447958d0ad3b26d68fb57f653e57c93a45df3 authored about 2 years ago by Mikkel Laursen <[email protected]>
feat(useMemo)!: useM returns object and useMR for manual return

Now that I've used this a bit more, I use:

```ts
useMemo(() => ({
// ...fields
}), [/* ...dep...

197dcca96b1e3ab6087f87f6b62a034bbd9034f6 authored about 2 years ago by Mikkel Laursen <[email protected]>
refactor: rename .prettierrc -> .prettierrc.yaml

.*rc files have weird syntax highlighting in vim by default

21ac5d4196e81f6c44747f7bb78a468ab411e5ab authored about 2 years ago by Mikkel Laursen <[email protected]>
build: switch from yarn to pnpm

8ea5c6a58a3089f4865400301d63c2f422234b45 authored about 2 years ago by Mikkel Laursen <[email protected]>
feat: add noop snippet

d981c5a58479228920838a5478fb868c0dbfe039 authored over 2 years ago by Mikkel Laursen <[email protected]>
docs(typescript): add intf snippet to cheatsheet

9d272e83e8d596141d498607f2565fa7d04bfd85 authored over 2 years ago by Mikkel Laursen <[email protected]>
fix(useContext): simplify tabstops

a064f52cc1ccf545df6a5014d85ec0bb50e68b10 authored over 2 years ago by Mikkel Laursen <[email protected]>
feat(import): add `icnb` to import cnb from cnbuilder

e34c4cfe3dff12e2a9d1b4b50aab8aa86c5010df authored over 2 years ago by Mikkel Laursen <[email protected]>
build(dev-deps): bump prettier and husky to latest

7a857f43b6712809c89decd25790e0c30ae9d432 authored over 2 years ago by Mikkel Laursen <[email protected]>
docs(README): update example videos to latest

155cf23359ea0883799b23a3f67e8438df187eb2 authored over 2 years ago by Mikkel Laursen <[email protected]>
feat(useImperativeHandle)!: remove dependency tabstop and `{}` tabstop

I removed the dependency array from this snippet since I normally let
eslint autofill these inst...

177c9cb958453afdb62a5d01169493956641ddb3 authored over 2 years ago by Mikkel Laursen <[email protected]>
docs(README): update README to match latest snippets

05284df0d26c2bbe9876ff948a5283f1600553bd authored over 2 years ago by Mikkel Laursen <[email protected]>
fix(javascript): remove ref type snippets

8c56709464671a2bb563775c5f1d9f5054ee08b5 authored over 2 years ago by Mikkel Laursen <[email protected]>
fix(javascript): remove unneeded tabstop on useRef

f6da7243db72ee31f641ea890a50b74edf7be39d authored over 2 years ago by Mikkel Laursen <[email protected]>
feat(useMemo)!: remove dependency tabstop and `{}` tabstop

I removed the dependency array from this snippet since I normally let
eslint autofill these inst...

ff0447d4b4f1a56169dd3c6e404ce07097c6365a authored over 2 years ago by Mikkel Laursen <[email protected]>
feat(useCallback)!: remove dependency tabstop and `{}` tabstop

I removed the dependency array from this snippet since I normally let
eslint autofill these inst...

ecdde301868a0d3edf749c184575d02f2f22f36f authored over 2 years ago by Mikkel Laursen <[email protected]>
feat(useEffect)!: remove tabstop in dependency array

I never actually type the dependencies manually so this additional
tabstop made it annoying to u...

323e67219b42dfe611fc7bc068052de5d3908ed1 authored over 2 years ago by Mikkel Laursen <[email protected]>
feat(useState)!: remove the setter tabstop

I pretty much never rename the setter function in useState since it is
generated by the value. T...

0d70231a38dfc0a786ed55d4eac7389d8ec8dc17 authored over 2 years ago by Mikkel Laursen <[email protected]>
fix(test): end test snippets inside the block instead of after

3c06a3ef0573ae967e8f6ec52f8c86c753e97fc9 authored over 2 years ago by Mikkel Laursen <[email protected]>
fix(typescript): end simple function components after fragment

688e752a380dcb9498b09115b3513d29bf7e1ca9 authored over 2 years ago by Mikkel Laursen <[email protected]>
docs(README): Prioritize Typescript and Function Components

8169e9571fc3056bcd68986e4535396eb65a7d49 authored over 2 years ago by Mikkel Laursen <[email protected]>
docs(README): fix repo links

588fa9c808618649515994fd967400f2efea829a authored over 2 years ago by Mikkel Laursen <[email protected]>
docs: fix typo for useImperativeHandle

21e213838f5a6eea6babb1c1645b2a0b025485f4 authored over 2 years ago by Mikkel Laursen <[email protected]>
fix: typo in `useImperativeHandle` snippet (#20)

2bdaa390b58be66c07912b81d741ff7cd0cf8799 authored over 2 years ago by Andrea Cappuccio <[email protected]>
feat(react): add useTransition snippet for react 18

6eb77d52b27d96135957f974f93f19e5f2bcdd5b authored over 2 years ago by Mikkel Laursen <[email protected]>
docs(log): update README for logging behavior

94fb311f33156143afc97c34051c3bc71f5cace3 authored over 2 years ago by Mikkel Laursen <[email protected]>
build(dev-deps): bump prettier from 2.6.0 to 2.6.2

197ec3d51d0e87d2e6bc27809f7f9647fe89dbce authored over 2 years ago by Mikkel Laursen <[email protected]>
feat(log): type on 2nd args to trigger auto complete (#19)

69a783c79fe7ba3451022857e09468a176c28bec authored over 2 years ago by Mr.Pongpayak <[email protected]>
build(dev-deps): bump prettier from 2.5.1 to v2.6.0

d34eb1933424675921efd728b5e374b09717304e authored almost 3 years ago by Mikkel Laursen <[email protected]>
chore(deps): bump minimist from 1.2.5 to 1.2.6 (#17)

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](h...

7d57b446d3d80b859c8604cf0f7fe231890a6a5f authored almost 3 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
feat!: Typescript function components always return fragments

Most of the time I return a `ReactElement` instead of null so it was
annoying having to update t...

07bba429200efd437a98e4cb1a06edb7bbf55469 authored almost 3 years ago by Mikkel Laursen <[email protected]>
chore: enable git add in pre-commit?

b74a907c5e32ab6951921013422edc794eb1aca0 authored almost 3 years ago by Mikkel Laursen <[email protected]>
chore(dev-deps): bump prettier from v2.4.1 to v2.5.1

1240c2fd51307631d6ce8630161a0db746486e8b authored almost 3 years ago by Mikkel Laursen <[email protected]>
feat!: update useReducer to use an inline reducer function

d8659e678974bc5a65d522f64cdcc579d8ec81a3 authored almost 3 years ago by Mikkel Laursen <[email protected]>
chore!(test): Removed the react-hooks-test-file snippet

c285903664c785b631ef07a17c78af8f173df729 authored about 3 years ago by Mikkel Laursen <[email protected]>
feat!(react): Update snippets for new React JSX transform

80571fcaadcd9f1bbaee36b25a2ab95e142b5f5b authored about 3 years ago by Mikkel Laursen <[email protected]>
chore(dev-deps): Bump husky from v7.0.2 to v7.0.4

54571805c426a63c31cb1e48d512cb56d55664d8 authored about 3 years ago by Mikkel Laursen <[email protected]>
build(deps): removed lint-staged since markdown-toc doesn't work there

1c775d72752cd7329a673e18a0478688e58e7350 authored over 3 years ago by Mikkel Laursen <[email protected]>
feat(scss): Added simple scss snippets

1f5592198fc905195f0bcbb9a92de9c97a801c50 authored over 3 years ago by Mikkel Laursen <[email protected]>
build(dev-deps): bump husky, lint-staged, prettier to latest

994f9654647ef2e99e271c8a1e2ee147aa58355d authored over 3 years ago by Mikkel Laursen <[email protected]>
chore(deps-dev): bump lint-staged from 11.0.1 to 11.1.1 (#11)

6815640e37f8f3f4ff5ca1492bd3825ea90ccf43 authored over 3 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): added dependabot workflow

7be26540a9524039dba9d9e3f8a2b40589ba6132 authored over 3 years ago by Mikkel Laursen <[email protected]>
chore(dev-deps): bump everything to latest

0a76b69341a50aadbfa2ad2f7d5562e650a536ae authored over 3 years ago by Mikkel Laursen <[email protected]>
chore(deps): bump set-getter from 0.1.0 to 0.1.1 (#10)

c41603ab97f0761346163f6b15c97d93bddf81ed authored over 3 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore(deps): bump hosted-git-info from 2.8.8 to 2.8.9 (#8)

9af7d4fb5dbfb2d6b88ec93e40ea5c44bd10a6cc authored over 3 years ago by dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
feat!(typescript): function components use named exports

My day-to-day development in typescript ends up doing more
`export * from "./Component"` so the ...

9a8ebb108055d4dce00ff28fb1aec948424e614e authored almost 4 years ago by Mikkel Laursen <[email protected]>
chore(dev-deps): updated prettier and lint-staged

32bb76f1e5743066ac978702791827a3fdb1ca5a authored almost 4 years ago by Mikkel Laursen <[email protected]>
feat!(typescript): `rtf` no longer uses default export

343e8a1852ff9e2ca549fa71a4afdf4699baa25d authored about 4 years ago by Mikkel Laursen <[email protected]>
fix(cdv): fixed typo to be console.debug instead of console.warn

65a3aa044b1745b2f7bd7c575ed130f37b1c92dc authored about 4 years ago by Mikkel Laursen <[email protected]>
feat: added jsdoc snippet for javascript and typescript

c642b8042f96f7bdd7371e67700a30b638dcfe7a authored about 4 years ago by Mikkel Laursen <[email protected]>
feat(typescript): added a reduce snippet to collect to a specific type

82e9ffa21d50a19ea8a023e4143709dbae2defd5 authored about 4 years ago by Mikkel Laursen <[email protected]>
feat(typescript): added some Ref type snippets

1e29d3d06731ff648ee22307723d27c97bf065b1 authored about 4 years ago by Mikkel Laursen <[email protected]>
feat(rcn): added require nested snippet

9cf5872a2b69d924b349bd82ec766b8f73ccec54 authored about 4 years ago by Mikkel Laursen <[email protected]>
feat(cdv): added console.debug variable snippet

f171a4d0b3de33fb5a894e0b2cf6ef5682d2c391 authored about 4 years ago by Mikkel Laursen <[email protected]>
fix(cev): fixed typescript console.error variable snippet to use double quote

3e831f6999ef81421b0d9987d58a600625c041b3 authored about 4 years ago by Mikkel Laursen <[email protected]>
feat(cwv): added console.warn variable snippet

27b12d70a700717dd8fedd59af7f02e704e37aac authored about 4 years ago by Mikkel Laursen <[email protected]>
docs: fixed export createSlice example in README

2ea68bf385ea08e223863b90ca0843110682adc1 authored about 4 years ago by Mikkel Laursen <[email protected]>
fix(ait): fixed typescript `ait` snippet

346ac33b4b37ec018876a5ee93554cebf2617b3b authored about 4 years ago by Mikkel Laursen <[email protected]>
feat(test): added `ait` snippet for async it blocks

687239c965b9c1702e5c5fdaee3bd6b7d16bdec1 authored about 4 years ago by Mikkel Laursen <[email protected]>
docs: fixed typo and moved installation to top of README

fef15f8b2db862bbbfa2a46487fcc0d963269da0 authored over 4 years ago by Mikkel Laursen <[email protected]>
feat(ecs): updated createSlice snippet to import createSlice

38ba0e738b445e0142ab626d38b4ed9894d58ec4 authored over 4 years ago by Mikkel Laursen <[email protected]>
feat(cat): created inline version of create async thunk and always export

76587a5479dbdf4f28b5b43e320fa3410efbd130 authored over 4 years ago by Mikkel Laursen <[email protected]>
bugfix(cpr): fixed missing colon in cpr snippet

ef005c2533c02ec830a99b46b6b00fc585a8d788 authored over 4 years ago by Mikkel Laursen <[email protected]>
feat(ffce): updated typescript ffce to just export default instead of creating a const first

5f28a8f6b7f2431b8212fe5a564c76d3b5154f3b authored over 4 years ago by Mikkel Laursen <[email protected]>
bugfix(typescript): fixed ffce snippet

7668192f82dc61a44c711545647a21e3c144fb7f authored over 4 years ago by Mikkel Laursen <[email protected]>
bugfix(general): fixed console and NODE_ENV snippets to work better inline

fe88aeb2e333bd8b35dd60f614872da1cb3e563e authored over 4 years ago by Mikkel Laursen <[email protected]>
feat!: added redux toolkit snippets

693939c55fd82ec4f40e51b88fe3553174d870f1 authored over 4 years ago by Mikkel Laursen <[email protected]>
feat(typescript): `intf` now ends inside brackets

44d8cca08fd481b9e30250b07e8955c51d9529a7 authored over 4 years ago by Mikkel Laursen <[email protected]>
feat!: removed non-hook API redux snippets

d413c40c936e6786363efeb15f2c3d4b696a39e0 authored over 4 years ago by Mikkel Laursen <[email protected]>
feat!: renamed `useSR` to `useSL` since it felt more natural

1de255149c28a082caec770d3e33e4f557cf860c authored over 4 years ago by Mikkel Laursen <[email protected]>
feat: added `dev` and `prod` NODE_ENV snippets

6b295a7f2c6725b53c93ae3269609ca0ac73fbd2 authored over 4 years ago by Mikkel Laursen <[email protected]>
feat: always add dependency array to use(Layout)Effect

19e7a5d86cf1ea47966cc90f266f5e3095e50360 authored over 4 years ago by Mikkel Laursen <[email protected]>
chore(dev-deps): upgraded prettier and lint-staged

417fd2fb93dfda66c24a9748c35b842ed9342144 authored over 4 years ago by Mikkel Laursen <[email protected]>
feat(typescript): more redux snippets

386e47ec60a2457c05938a047d0b32e89f23ccd8 authored over 4 years ago by Mikkel Laursen <[email protected]>
feat: added redux hook snippets

fc7591701ed07008d2b7f6d9f5fefc9e415044aa authored over 4 years ago by Mikkel Laursen <[email protected]>
chore!: changed `useDebugValue` to be `useDV` instead of `useD`

9e7b88f56e384c83d7d78ecdd32f70c2a65f483a authored over 4 years ago by Mikkel Laursen <[email protected]>
feat(typescript)!: Changed FormEvent and FocusEvent types

Since `FormEvent` is used a lot less than focus events, I swapped them
around so:

- `fe` -> `Fo...

498806e6bb05c8848774bee827855d908d063375 authored over 4 years ago by Mikkel Laursen <[email protected]>
feat(typescript)!: `ce` -> `che` and `ceh` -> `cheh`

Updated the ChangeEvent and ChangeEventHandler snippets to be `ch`
instead of `c` to help preven...

f331d7e715bdd741aa03a169aeccc1635f933d30 authored over 4 years ago by Mikkel Laursen <[email protected]>
fix(typescript): added missing colon to `event: ` for event handlers

0c7b25a5fb4c28cd2dc7e69bb315f861bd6258d9 authored over 4 years ago by Mikkel Laursen <[email protected]>
feat: added `cd` snippet (console.debug) and `cev` (console.error variable)

750655c9ed54be4604613a946e1283278f56b73e authored over 4 years ago by Mikkel Laursen <[email protected]>
feat!(typescript): changed react events and handlers

Not sure if I'll still actually use these, but the updates should make
them a little more useful...

b8cfe4bd46405631d964d7b3b05fa4155bf7fe31 authored over 4 years ago by Mikkel Laursen <[email protected]>
chore: fixed README

0e753b32f4b106d8d3a509b6efb19622318cb973 authored over 4 years ago by Mikkel Laursen <[email protected]>