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
Using the FC utility type from React seems to be a no-no from the
React/Typescript community sin...
89f09b464d0bb9aefef50b71d49200edb0cb11db authored over 4 years ago by Mikkel Laursen <[email protected]>
You'll never really want to trigger an async effect each render,
so the useEA hook will always d...
Updated all the snippets to remove semi colons by default since it makes
it easier to use multip...
b85135e7b890160b0288ea8d571e2d778413344c authored over 4 years ago by Mikkel Laursen <[email protected]>
038082f158fef36676b1acee95306dabbd9e1d12 authored over 4 years ago by Mikkel Laursen <[email protected]>
00582a7a5c1c4bc2cf6fec5d5d19c24e4de4e0ef authored over 4 years ago by Mikkel Laursen <[email protected]>
This is really because I use it so much for my react-md project
for adding prop-types to Typescr...
10059d227c66ebec03ba20bfc064c10ae7456d17 authored almost 5 years ago by Mikkel Laursen <[email protected]>
Bumps [minimist](https://github.com/substack/minimist) from 1.2.0 to 1.2.5.
- [Release notes](h...
fbd84f9873929541840fba68487628b7fcc0cd4d authored almost 5 years ago by Mikkel Laursen <[email protected]>
This reverts commit e378431c10c74ae62ec31eeba0afa322a131e576.
Switched back to FC for the funct...
6f89b9b7d46084f6c5b2df7e7368729ff8965ca9 authored almost 5 years ago by Mikkel Laursen <[email protected]>2fa854e3fc2706d81d80590bf30a56773c0bd149 authored almost 5 years ago by Mikkel Laursen <[email protected]>
The FC type isn't actually very helpful after extended usage of this.
The fce, sfce, and fc snip...
The current version of @testing-library automatically runs cleanup now
so the afterEach(cleanup)...
2ce7c4fbfc57d35a276d6df4536d204d2ad10567 authored about 5 years ago by Mikkel Laursen <[email protected]>
Since vim now uses javascriptreact and typescriptreact file times for
.jsx and .tsx, I added "of...
3c4a4680a6d4b5f05ba90583de4f724c5201bd68 authored about 5 years ago by Mikkel Laursen <[email protected]>
0f8c3a4e3095d8f712a103e7c19a67e680fbdf0e authored about 5 years ago by Mikkel Laursen <[email protected]>
4e33643828de00e230affc7ceb82ebb62dccbe92 authored about 5 years ago by Mikkel Laursen <[email protected]>
Removed the semicolons from the console snippets since it can be helpful
to render these inline ...
cc149d5e6c3761c9dcf163a1c568e8ed48856833 authored over 5 years ago by Mikkel Laursen <[email protected]>
Updated `useM`, `useR`, `useCB` and `useC` so they can be used like:
const anything = useM
cons...
Updated the testing hooks to use the @testing-library/react and
@testing-library/react-hooks to ...
Added a new export snippet to export the default from a folder. This is
useful for folder index....
dd3514b5e0e34b679d75ceb8cf8721863c540ecb authored over 5 years ago by Mikkel Laursen <[email protected]>
25a4d2c32a4baf73db322a47736f53b433f32de4 authored over 5 years ago by Mikkel Laursen <[email protected]>
Updated the FunctionComponent to be the shorthand FC instead.
2125c4c0d8db8d3f98e66adb949302067c5a78ee authored over 5 years ago by Mikkel Laursen <[email protected]>f2350ccbad54f8ff86fac111f021f7e465fc955a authored over 5 years ago by Mikkel Laursen <[email protected]>
a7f1c0fe47bb53260664f9c3c2093ae7f1148273 authored over 5 years ago by Mikkel Laursen <[email protected]>
5a5fcfd377ca8ab5cd84f4b15336cecd9288e2f9 authored almost 6 years ago by Mikkel Laursen <[email protected]>
94fa30937935bcd30e4e6ee9fcedb51bb604c29f authored almost 6 years ago by Mikkel Laursen <[email protected]>
Fixed some snippet documentation and added forwardRef to TS
Added hooks example
Tab -> spaces ...
5362a5d3b1ee57bf9ba2aa6b560132a4d19cf923 authored almost 6 years ago by Mikkel Laursen <[email protected]>a944ce30559f1e97f12ef8f5af35240f3aaf994f authored almost 6 years ago by Mikkel Laursen <[email protected]>
2dc4b0d95a9bfde7d79bb92ceba8874ad8c4a494 authored almost 6 years ago by Mikkel Laursen <[email protected]>
d3f2bfe29c1cf57a8a3c6cfcbc70a6a51e6469e1 authored almost 6 years ago by Mikkel Laursen <[email protected]>
3ed84339ad1798e4029ef34319a853ecb5af527c authored almost 6 years ago by Mikkel Laursen <[email protected]>
1a85b250c9624f545ce31066c3c7214c31ce95f0 authored almost 6 years ago by Mikkel Laursen <[email protected]>
=== General
Updated the logical tab order for the new react hooks to be more left to
right inst...
295fafc7a25d009cdbd6b4ebf87ac2f861430c2f authored almost 6 years ago by Mikkel Laursen <[email protected]>
7857dfcd90068f24038a55b91d162fce5d955d37 authored almost 6 years ago by Mikkel Laursen <[email protected]>
JavaScript and Typescript snippets:
- `useS` - useState
- `useE` - useEffect
- `useC` - useCont...
69862d53bf9ed88f21a8aeacf070407bc2f812bc authored almost 6 years ago by Mikkel Laursen <[email protected]>
Updated:
- `rce` will now mimic the javascript version entirely without
definining any prop or s...
b796de02bd35fcbd6045c7c4e4e5a6b93f5c1348 authored almost 6 years ago by Mikkel Laursen <[email protected]>
The simple function component just does not use props and does not
declare a prop interface with...
6ac07dc9ca87d0f8280a3a15c437f7faa977bb62 authored almost 6 years ago by Mikkel Laursen <[email protected]>
Changed the react import style from using:
`import * as React from "react"` to
`import React, { ...
b2cdc9df5a03ba96e7c2eae869ab9681e8364f84 authored almost 6 years ago by Mikkel Laursen <[email protected]>
84f38aaf9c8063486aed4701a627f6c79c98e9e2 authored about 6 years ago by Mikkel Laursen <[email protected]>
a292c184080c8d4be1a47f483b67aa80f31e8a67 authored about 6 years ago by Mikkel Laursen <[email protected]>
c49c5f6de9a6d14f55844330ec161ce59e4a880a authored about 6 years ago by Mikkel Laursen <[email protected]>
0a0df7ab0ad496cb9c05feb5fe9e202b776785a8 authored about 6 years ago by Mikkel Laursen <[email protected]>
b60613ac9c1d3352b97b0565c1e726e1eda74d64 authored about 6 years ago by Mikkel Laursen <[email protected]>
c52ba11113f967957885b665452f4f641ce26eca authored about 6 years ago by Mikkel Laursen <[email protected]>
c565b68706cd32e2e9103e462f8506f2679e29a3 authored over 6 years ago by Mikkel Laursen <[email protected]>
76755f607fe188c2cacd24e0b514a495b80a7f5b authored over 6 years ago by Mikkel Laursen <[email protected]>
- removed `imps` as it was never used
- removed `exp` and renamed to `expf` to match impf
- remo...
24dce72034c4bfd3d170b6759b282124428e6b04 authored over 6 years ago by Mikkel Laursen <[email protected]>
4cb4038a436227af578afc2186f597964533ce23 authored over 6 years ago by Mikkel Laursen <[email protected]>
bce6538cdd395b5dd336613d75d67e38887d283d authored over 6 years ago by Mikkel Laursen <[email protected]>
610f6dca27bbba9bb26c2d29ce3e2704b77846fe authored over 6 years ago by Mikkel Laursen <[email protected]>
2da4df560f0029055324fd375de4a0d59e124db5 authored over 6 years ago by Mikkel Laursen <[email protected]>
8a1d1a1a0ed4cd337e5ca8ed5ed6525eed51e147 authored over 6 years ago by Mikkel Laursen <[email protected]>
8c793c0f4db5399304a4973344c091758a8569e7 authored over 6 years ago by Mikkel Laursen <[email protected]>
This is not backwards compatible, so sorry for anyone that is using this
as well.
I have remove...
a9926a5daaefc0357ba054471c44ffd81949c806 authored over 6 years ago by Mikkel Laursen <[email protected]>981c3102c5f152d4b26bfadfb78134d828c95b10 authored over 7 years ago by Mikkel Laursen <[email protected]>
7a1bcb5d6fe4c0f6cb7f60d13d0d8bdaeb0c1324 authored over 7 years ago by Mikkel Laursen <[email protected]>
6855b0e5836410a1d1c457bb4baaf2d7486764ef authored over 7 years ago by Mikkel Laursen <[email protected]>
ec8f4eba37a8298c53613c8247dc44585a03e88f authored over 7 years ago by Mikkel Laursen <[email protected]>
daf0093f67a0045406a3075d18b04bab8f782206 authored over 7 years ago by Mikkel Laursen <[email protected]>
32872977c635083416334a2ce086ac12a67c6a73 authored over 7 years ago by Mikkel Laursen <[email protected]>
2cde390e64c494ebe4f357de22275ece4a1cebe0 authored over 7 years ago by Mikkel Laursen <[email protected]>
eed3f7a6d2e912dfad474d480c92d4257702b6ac authored over 7 years ago by Mikkel Laursen <[email protected]>
0b5c525906b838902430a06a0deebcba94ddd115 authored over 7 years ago by Mikkel Laursen <[email protected]>
814130afe6409d6167944b4c82bc6d01f84d42c3 authored over 7 years ago by Mikkel Laursen <[email protected]>
8efa0d46ec0e715914ec1b20ab22f7b2a63f32c6 authored over 7 years ago by Mikkel Laursen <[email protected]>
3c1fec80e650220ca4ce0191fcfb83ea72266d54 authored over 7 years ago by Mikkel Laursen <[email protected]>
9bd67dce07fede348e89361a0504b5b627ebb5b8 authored over 7 years ago by Mikkel Laursen <[email protected]>
70575b10c57a771054f8755b50e5d4931f41cd81 authored over 7 years ago by Mikkel Laursen <[email protected]>
444a35ef1c7d93b951f123bfab946efe488a36a0 authored over 7 years ago by Mikkel Laursen <[email protected]>
f8b0bd6682c5c9162c7b9b3b6041c396e7caf877 authored over 7 years ago by Mikkel Laursen <[email protected]>
2d10e6ce244d850efd73ad149cdc6ef601acbb5f authored over 7 years ago by Mikkel Laursen <[email protected]>
ee70a4d001ea3c7f63fec70ac71edefe468ff0e3 authored over 7 years ago by Mikkel Laursen <[email protected]>
dbc218fa44183b5680c9fde42460d1d693110d18 authored over 7 years ago by Mikkel Laursen <[email protected]>
07891332dd9a49a322357eac6f57d151b585e3f8 authored over 7 years ago by Mikkel Laursen <[email protected]>
f0fe8468ec79e9ac87fd3f60f3ebd3361bc2ec20 authored over 7 years ago by Mikkel Laursen <[email protected]>
44b478d6ce5d4c51273d74034179d841d5da45bb authored over 7 years ago by Mikkel Laursen <[email protected]>
6717e411c055a31644960c3f08ccbeb3e17b15e4 authored over 7 years ago by Mikkel Laursen <[email protected]>
73b25e206093d7b4a417db7801e5b126b77f0f0e authored over 7 years ago by Mikkel Laursen <[email protected]>
dd97a176448859a9154648d66a653100ce2f6275 authored over 7 years ago by Mikkel Laursen <[email protected]>
what happened
38a5c2652f8cfcd7f36bf9d040cd0c6609f5270c authored over 7 years ago by Mikkel Laursen <[email protected]>22b9a81c7f6189eb36d50cd62494638661accaec authored over 7 years ago by Mikkel Laursen <[email protected]>
dd4afda78eacba2e6eae03f3bdba52fc89c70f77 authored over 7 years ago by Mikkel Laursen <[email protected]>
5de043103c742e6b9a6a45ff780acabdf01d979a authored over 7 years ago by Mikkel Laursen <[email protected]>
c282a2356378673ffaba7dba2a5edbd00d62f825 authored over 7 years ago by Mikkel Laursen <[email protected]>
19693605dad0c6695c0856fca47eaef1e3aef772 authored over 7 years ago by Mikkel Laursen <[email protected]>
52bfa75641277cca3f43b12fbc3c8108120b6c1b authored over 7 years ago by Mikkel Laursen <[email protected]>
3d5bec79492c826e40e8de3a7c205fa51aea9537 authored over 7 years ago by Mikkel Laursen <[email protected]>
edf91cd0e70a31e526e0f65d0aa2c1b99541daf8 authored over 7 years ago by Mikkel Laursen <[email protected]>