Pinned Loading
-
Parallel Async/Await in real life ex...
Parallel Async/Await in real life example 1const mockUsers = [
2{
3id: 1,
4name: 'Tom',
5deviceId: 102
-
Sass scope with BEM
Sass scope with BEM 1<div class="card">
2<div class="card__value">
3Original
4</div>
5</div>
-
Async/Await error handling
Async/Await error handling 1const fetchAndUpdatePosts = () => {
2fetchPosts()
3.then((posts) => {
4updatePosts(posts)
5.catch((err) => {
-
Promise.all error handling
Promise.all error handling 1const pause = (data, time) => new Promise(resolve => setTimeout(() => resolve(data), time));
2const pauseReject = (data, time) =>
3new Promise((resolve, reject) =>
4setTimeout(() => reject(new Error(`Something went wrong in the ${data} promise`)), time)
5);
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.