Look for more options here: https://www.tailwindawesome.com
- Radix
Look for more options here: https://www.tailwindawesome.com
A list to track my progress because I tend to forget such things. Listing only useful ones here.
| const experiences = [ | |
| // all `nulls`s | |
| {id: 1, name: "FOO", startDateYear: null, startDateMonth: null, endDateYear: null, endDateMonth: null}, | |
| // three `null`s | |
| {id: 2, name: "FOO", startDateYear: 2022, startDateMonth: null, endDateYear: null, endDateMonth: null}, | |
| {id: 3, name: "FOO", startDateYear: null, startDateMonth: 2, endDateYear: null, endDateMonth: null}, | |
| {id: 4, name: "FOO", startDateYear: null, startDateMonth: null, endDateYear: 2022, endDateMonth: null}, | |
| {id: 5, name: "FOO", startDateYear: null, startDateMonth: null, endDateYear: null, endDateMonth: 2}, |
| /* | |
| Check this: https://tkdodo.eu/blog/status-checks-in-react-query | |
| Check this: https://github.com/ivan-kleshnin/react-query-status-checks | |
| */ | |
| // TWO PARALLEL QUERIES, RESULTS ARE RENDERED SEPARATELY | |
| export function Controller() : JSX.Element { | |
| const query1 = useQuery("...first") | |
| const query2 = useQuery("...second") |
ФУЛЛСТЕК РАЗРАБОТКА для продвинутых
Утомили пересказы документации и Hello-World туториалы?
На Paqmind регулярно публикуем уникальный авторский контент по
веб-разработке и программированию для уровней Junior+, Middle и выше.
| const assert = (v, err) => { | |
| if (!v) { | |
| throw err; | |
| } | |
| }; | |
| let counter = 0; | |
| class Promise { | |
| constructor(executor) { |
| function swap(i1, i2, xs) { | |
| if (i1 == i2) return xs | |
| return xs.reduce((z, x, i) => { | |
| return i == i1 ? z : | |
| i == i2 ? (i1 > i2 ? [...z, xs[i1], x] : [...z, x, xs[i1]]) : | |
| [...z, x] | |
| }, []) | |
| } | |
| // Например, переставить 'B' с i1 = 1 на i2 = 4 |