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
383abba5d6835eced72c89bbcdfa63295d803f88 authored about 1 year ago
740d50d04fc8baab49ea786848818f1b6db81f71 authored about 1 year ago
58e47974d63598b172a032c19954c67ecca2d6bd authored about 1 year ago
37c6d3c2d17ab351a9a0f7ce11273887eeaf71f3 authored about 1 year ago
I never use it. It isn't quite depend..able.
661dd0da742f4092dd9117b9dcd1cd18df78a604 authored about 1 year ago2eb371aa7f092283ee63a6bdaaf01f48813bf75c authored over 1 year ago
82bdccf59b97abf03001df7982f9d35d0d4feb31 authored over 1 year ago
f4b1c70d26f4c3ae224db6a0a04597094bd51f55 authored over 1 year ago
7e424d4aa450315e63a958a0b020abc4bba39292 authored over 1 year ago
dbf0c856a8e8889412144d8fdd49837384818c5f authored over 1 year ago
cc228411da8cbeda668933d2dd8b5da5a9b130b0 authored over 1 year ago
ed2d0c0cbb951814ba6496ef4ef6fa7abefe1ed7 authored over 1 year ago
07c285799fa4b017c5aad336e535dd2010294d21 authored over 1 year ago
b54ad78098158db06dcf03e8e087de7068f74faa authored over 1 year ago
dd64456beca0d7ff70faa4ec049ca42750592f77 authored over 1 year ago
744eb8ce6a3dd25ce10a6dcaa34087ebef62874a authored over 1 year ago
bec13ea2835519e489fc108f062b956db1ba9b99 authored over 1 year ago
f872e360157a797c80453d06db42ea7df9c0c357 authored over 1 year ago
cb1447958d0ad3b26d68fb57f653e57c93a45df3 authored about 2 years ago
Now that I've used this a bit more, I use:
```ts
useMemo(() => ({
// ...fields
}), [/* ...dep...
.*rc files have weird syntax highlighting in vim by default
21ac5d4196e81f6c44747f7bb78a468ab411e5ab authored about 2 years ago8ea5c6a58a3089f4865400301d63c2f422234b45 authored about 2 years ago
d981c5a58479228920838a5478fb868c0dbfe039 authored over 2 years ago
9d272e83e8d596141d498607f2565fa7d04bfd85 authored over 2 years ago
a064f52cc1ccf545df6a5014d85ec0bb50e68b10 authored over 2 years ago
e34c4cfe3dff12e2a9d1b4b50aab8aa86c5010df authored over 2 years ago
7a857f43b6712809c89decd25790e0c30ae9d432 authored over 2 years ago
155cf23359ea0883799b23a3f67e8438df187eb2 authored over 2 years ago
I removed the dependency array from this snippet since I normally let
eslint autofill these inst...
05284df0d26c2bbe9876ff948a5283f1600553bd authored over 2 years ago
8c56709464671a2bb563775c5f1d9f5054ee08b5 authored over 2 years ago
f6da7243db72ee31f641ea890a50b74edf7be39d authored over 2 years ago
I removed the dependency array from this snippet since I normally let
eslint autofill these inst...
I removed the dependency array from this snippet since I normally let
eslint autofill these inst...
I never actually type the dependencies manually so this additional
tabstop made it annoying to u...
I pretty much never rename the setter function in useState since it is
generated by the value. T...
3c06a3ef0573ae967e8f6ec52f8c86c753e97fc9 authored over 2 years ago
688e752a380dcb9498b09115b3513d29bf7e1ca9 authored over 2 years ago
8169e9571fc3056bcd68986e4535396eb65a7d49 authored over 2 years ago
588fa9c808618649515994fd967400f2efea829a authored over 2 years ago
21e213838f5a6eea6babb1c1645b2a0b025485f4 authored over 2 years ago
2bdaa390b58be66c07912b81d741ff7cd0cf8799 authored over 2 years ago
6eb77d52b27d96135957f974f93f19e5f2bcdd5b authored almost 3 years ago
94fb311f33156143afc97c34051c3bc71f5cace3 authored almost 3 years ago
197ec3d51d0e87d2e6bc27809f7f9647fe89dbce authored almost 3 years ago
69a783c79fe7ba3451022857e09468a176c28bec authored almost 3 years ago
d34eb1933424675921efd728b5e374b09717304e authored almost 3 years ago
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](h...
Most of the time I return a `ReactElement` instead of null so it was
annoying having to update t...
b74a907c5e32ab6951921013422edc794eb1aca0 authored about 3 years ago
1240c2fd51307631d6ce8630161a0db746486e8b authored about 3 years ago
d8659e678974bc5a65d522f64cdcc579d8ec81a3 authored about 3 years ago
c285903664c785b631ef07a17c78af8f173df729 authored about 3 years ago
80571fcaadcd9f1bbaee36b25a2ab95e142b5f5b authored about 3 years ago
54571805c426a63c31cb1e48d512cb56d55664d8 authored about 3 years ago
1c775d72752cd7329a673e18a0478688e58e7350 authored over 3 years ago
1f5592198fc905195f0bcbb9a92de9c97a801c50 authored over 3 years ago
994f9654647ef2e99e271c8a1e2ee147aa58355d authored over 3 years ago
6815640e37f8f3f4ff5ca1492bd3825ea90ccf43 authored over 3 years ago
7be26540a9524039dba9d9e3f8a2b40589ba6132 authored over 3 years ago
0a76b69341a50aadbfa2ad2f7d5562e650a536ae authored over 3 years ago
c41603ab97f0761346163f6b15c97d93bddf81ed authored over 3 years ago
9af7d4fb5dbfb2d6b88ec93e40ea5c44bd10a6cc authored over 3 years ago
My day-to-day development in typescript ends up doing more
`export * from "./Component"` so the ...
32bb76f1e5743066ac978702791827a3fdb1ca5a authored almost 4 years ago
343e8a1852ff9e2ca549fa71a4afdf4699baa25d authored about 4 years ago
65a3aa044b1745b2f7bd7c575ed130f37b1c92dc authored about 4 years ago
c642b8042f96f7bdd7371e67700a30b638dcfe7a authored about 4 years ago
82e9ffa21d50a19ea8a023e4143709dbae2defd5 authored about 4 years ago
1e29d3d06731ff648ee22307723d27c97bf065b1 authored about 4 years ago
9cf5872a2b69d924b349bd82ec766b8f73ccec54 authored about 4 years ago
f171a4d0b3de33fb5a894e0b2cf6ef5682d2c391 authored about 4 years ago
3e831f6999ef81421b0d9987d58a600625c041b3 authored about 4 years ago
27b12d70a700717dd8fedd59af7f02e704e37aac authored about 4 years ago
2ea68bf385ea08e223863b90ca0843110682adc1 authored about 4 years ago
346ac33b4b37ec018876a5ee93554cebf2617b3b authored over 4 years ago
687239c965b9c1702e5c5fdaee3bd6b7d16bdec1 authored over 4 years ago
fef15f8b2db862bbbfa2a46487fcc0d963269da0 authored over 4 years ago
38ba0e738b445e0142ab626d38b4ed9894d58ec4 authored over 4 years ago
76587a5479dbdf4f28b5b43e320fa3410efbd130 authored over 4 years ago
ef005c2533c02ec830a99b46b6b00fc585a8d788 authored over 4 years ago
5f28a8f6b7f2431b8212fe5a564c76d3b5154f3b authored over 4 years ago
7668192f82dc61a44c711545647a21e3c144fb7f authored over 4 years ago
fe88aeb2e333bd8b35dd60f614872da1cb3e563e authored over 4 years ago
693939c55fd82ec4f40e51b88fe3553174d870f1 authored over 4 years ago
44d8cca08fd481b9e30250b07e8955c51d9529a7 authored over 4 years ago
d413c40c936e6786363efeb15f2c3d4b696a39e0 authored over 4 years ago
1de255149c28a082caec770d3e33e4f557cf860c authored over 4 years ago
6b295a7f2c6725b53c93ae3269609ca0ac73fbd2 authored over 4 years ago
19e7a5d86cf1ea47966cc90f266f5e3095e50360 authored over 4 years ago
417fd2fb93dfda66c24a9748c35b842ed9342144 authored over 4 years ago
386e47ec60a2457c05938a047d0b32e89f23ccd8 authored over 4 years ago
fc7591701ed07008d2b7f6d9f5fefc9e415044aa authored over 4 years ago
9e7b88f56e384c83d7d78ecdd32f70c2a65f483a authored over 4 years ago
Since `FormEvent` is used a lot less than focus events, I swapped them
around so:
- `fe` -> `Fo...
498806e6bb05c8848774bee827855d908d063375 authored over 4 years ago
Updated the ChangeEvent and ChangeEventHandler snippets to be `ch`
instead of `c` to help preven...
0c7b25a5fb4c28cd2dc7e69bb315f861bd6258d9 authored over 4 years ago
750655c9ed54be4604613a946e1283278f56b73e authored over 4 years ago
Not sure if I'll still actually use these, but the updates should make
them a little more useful...
0e753b32f4b106d8d3a509b6efb19622318cb973 authored over 4 years ago