it + it dev nextjs jest Mastering Jest: A Complete Guide to Testing Next.js Applications Part-1In the fast-paced world of web development, creating robust and bug-free applications is paramount.... Tagged with jest, testing, nextjs, react. wono | discuss | tweet + it dev nextjs jest Unit Test Next.js API Routes with TypeScript (longer-version)Testing API routes sucks, especially when using TypeScript. This article covers how to unit test Next.js API routes with TypeScript using Jest and React Testing Libraries. With the release of Next.js… wono | discuss | tweet + it dev jest Jest를 이용해서 테스트 코드를 작성해 보자!테스트 코드를 작성해야하는 이유...?작성한 코드가 의도한 대로 작동하는지 검증할 수 있다.코드 변경 시, 변경 부분으로 인한 영향도를 쉽게 파악할 수 있다.코드 리팩토링 시 기능 구현이 동일하게 되었다는 판단을 내릴 수 있다.코드 변경 시, 변경 부분으로 인한 영향도 wono | discuss | tweet + it dev jest Guide to writing integration tests in express js with Jest and SupertestWriting integration tests for new developers can prove a little tricky. During my first foray into... Tagged with javascript, express, node. wono | discuss | tweet + it blog nextjs Next.js app router에서 React Query 사용하면서 고민했던 것들지난 글에서 react-query의 hydrate, dehydrate을 통해 서버에서 prefetching 한 데이터 사용하는 방법에 대해서 살펴보았습니다. 서버에서 prefetching 한 데이터 사용하기 오늘은 조금 실용적으로 Next.js 13, 14 버전의 app router에서 react-query를 어떻게 사용하고 세팅하면 좋을지 고민했던 내용에 대해서 이야기해보도록 하겠습니다. 해당 글은 23년 10월에 메이저 버전 업데이트된, Next.js 14와 React-Query 5 를 기준으로 작성된 글입니다. 예시로 보여주는 코드는 저의 next-14-react-query repo에서 확인 할 수 있습니다. 제가 크게 고민했던 문제는 아래 세 가지입니다. Hydrate vs ReactQueryStreamedHydration 두 가지 API 중에 어떤 것을 채택할까? Hydration API 사용 시에 RSC, RCC 모두에서 깔끔한 코드를 유지하려면 queryOption은 … wono | discuss | tweet + it blog nextjs react next.js에서 react query가 필요할까?😋왜 필요할까?react-query가 제공해주는 SSR 환경에서 사용법을 보면서 한가지 의문이 들었습니다. react query가 제공해주는 캐싱, 리페칭 등등의 기능들이 매력적이긴한데...사실 대부분의 기능은 캐싱 , revalidate 같은 부분은next.js가 제공해주는 확장된 fetch 함수로도 충분하지 않나?? 그렇다면 next.js에서 react-query를 꽤나 복잡한 설정을 꾸역꾸역 설정하며 굳이굳이 사용할 필요성이 있을까?라는 의문이 들었습니다. 물론 아직 제공되지 않는 부분도 많을 것 같습니다.하지만 꼭 필요할까?라고 묻는다면 좀 애매할 것 같았습니다.그러던 중 You Might Not Need React Query라는 글을 발견했어요https://tkdodo.eu/blog/you-m.. wono | discuss | tweet + it blog react zustand [우아콘 2023] 프론트엔드 상태관리 실전 편 with React Query & ZustandStore가 너무 크고 복잡해요.Store에 상태관리보다 API 호출 코드가 더 많아요.Redux나 MobX가 비동기 통신에 적합한 도구일까요?이러한 고민 끝에 React Query라는 도구를 도입하게됩니다.Store는 간단한데 컴포넌트가 복잡해진 것 같아요.Clien wono | discuss | tweet + it blog react 카카오페이 프론트엔드 개발자들이 React Query를 선택한 이유 | 카카오페이 기술 블로그카카오페이 프론트엔드 개발자들이 React Query를 선택한 이유에 대해 설명합니다. 이 글은 연작 중 1편에 해당합니다. 1편: 카카오페이 프론트엔드 개발자들이 React Query를 선택한 이유, 2편: React Query와 함께 선언적 UI를 구성하는 방법 wono | discuss | tweet + it blog react React-query 를 사용해 상태관리를 해보자React-query 를 사용해 상태관리를 해보자 wono | discuss | tweet + it blog arc fe state React 상태 관리 라이브러리 비교하기 | bandal.devContext-API, Recoil, Redux, Zustand에 대해 비교해보겠습니다. wono | discuss | tweet + it blog lang 왜 Svelte 프로젝트는 TypeScript에서 JSDoc으로 이전하는가? | Daniel Lee최근 TypeScript로 짜여있던 Svelte 코드를 JS+JSDoc 다시 작성한다는 소식이 JS커뮤니티를 떠들썩하게 했는데요, 이에 대한 @Rich_Harris의 답변이 인상적입니다: → Svelte팀은 TS의 지원을 중단하는 것이 아닙니다. Type safety를 포기하는 것도 아닙니다. wono | discuss | tweet + it dev sveltekit Our design pattern for SvelteKit - how we organize our projects wono | discuss | tweet + it dev sveltekit api SvelteKit API Endpoints And Loading Data For PagesLearn about API endpoints and loading data for your pages with SvelteKit. wono | discuss | tweet + it dev nextjs shadcnui addon shadcn/ui add components and resourcesI often need some extra components / libraries that are ready to use in a shadcn/ui project, and with time I gathered some great resources. A set of utilities to create data tables with many useful… wono | discuss | tweet + it dev nextjs shadcnui shadcn/ui expansionsshadcnui expansion: Simple infinite scroll component. You have fully control over the loading spinner and IntersectionObserver API. wono | discuss | tweet + it dev nextjs shadcnui Shadcn infinite scroll exampleIn this post, let's explore how you can add infinite scroll functionality to your app using shadcn.... wono | discuss | tweet + it blog nextjs lighthouse Lighthouse로 Next.js 성능 44% 개선하기Lighthouse를 이용해서 Next.js 프로젝트의 성능을 최적화 했던 방법들을 공유하고자 합니다. wono | discuss | tweet + it dev python fastapi Python and FastAPI tutorial in Visual Studio CodePython FastAPI tutorial showing IntelliSense and debugging support in Visual Studio Code, the best Python IDE. wono | discuss | tweet + it dev python fastapi 4-09 Gunicorn 사용하기운영 환경에서 FastAPI 서버를 구동하기 위해서는 AWS 터미널에서 다음과 같은 명령을 실행해야 한다. ```no-highlight $ uvicorn main:app --r… wono | discuss | tweet + it dev python fastapi FastAPI의 Uvicorn + Gunicorn 결합은 반드시 필요한 것인가?개요 FastAPI는 비동기 프레임워크로 ASGI 서버를 지원하는 Uvicorn 과 함께 기동되어 사용된다. 다른 Flask, Django와 비교하여 성능이 2배정도 빠르다고 알려져있다. 하지만 성능이 빠르다고한들 개발자가 사용방법을 모르고 개발한다면 제대로 된 성능을 끌어올리기에는 어려움이 있을 수 있다. 우리는 정말 제대로 알고 사용하고 있는것인가? 이번 포스팅에서는 Uvicorn이 반드시 Guicorn과 결합이 필요한지에 대하여 알아보고자한다. 배경지식 Gunicorn이란 무엇인가? Gunicorn 은 WSGI 프로토콜을 사용하여 웹 애플리케이션과 상호 작용하는 서버이자 프로세스 관리자이다. Flask 또는 Django 와 같은 WSGI 동기식 웹 프레임워크로 작성된 애플리케이션을 제공한다. Gun.. wono | discuss | tweetNext
+ it dev nextjs jest Mastering Jest: A Complete Guide to Testing Next.js Applications Part-1In the fast-paced world of web development, creating robust and bug-free applications is paramount.... Tagged with jest, testing, nextjs, react. wono | discuss | tweet
+ it dev nextjs jest Unit Test Next.js API Routes with TypeScript (longer-version)Testing API routes sucks, especially when using TypeScript. This article covers how to unit test Next.js API routes with TypeScript using Jest and React Testing Libraries. With the release of Next.js… wono | discuss | tweet
+ it dev jest Jest를 이용해서 테스트 코드를 작성해 보자!테스트 코드를 작성해야하는 이유...?작성한 코드가 의도한 대로 작동하는지 검증할 수 있다.코드 변경 시, 변경 부분으로 인한 영향도를 쉽게 파악할 수 있다.코드 리팩토링 시 기능 구현이 동일하게 되었다는 판단을 내릴 수 있다.코드 변경 시, 변경 부분으로 인한 영향도 wono | discuss | tweet
+ it dev jest Guide to writing integration tests in express js with Jest and SupertestWriting integration tests for new developers can prove a little tricky. During my first foray into... Tagged with javascript, express, node. wono | discuss | tweet
+ it blog nextjs Next.js app router에서 React Query 사용하면서 고민했던 것들지난 글에서 react-query의 hydrate, dehydrate을 통해 서버에서 prefetching 한 데이터 사용하는 방법에 대해서 살펴보았습니다. 서버에서 prefetching 한 데이터 사용하기 오늘은 조금 실용적으로 Next.js 13, 14 버전의 app router에서 react-query를 어떻게 사용하고 세팅하면 좋을지 고민했던 내용에 대해서 이야기해보도록 하겠습니다. 해당 글은 23년 10월에 메이저 버전 업데이트된, Next.js 14와 React-Query 5 를 기준으로 작성된 글입니다. 예시로 보여주는 코드는 저의 next-14-react-query repo에서 확인 할 수 있습니다. 제가 크게 고민했던 문제는 아래 세 가지입니다. Hydrate vs ReactQueryStreamedHydration 두 가지 API 중에 어떤 것을 채택할까? Hydration API 사용 시에 RSC, RCC 모두에서 깔끔한 코드를 유지하려면 queryOption은 … wono | discuss | tweet
+ it blog nextjs react next.js에서 react query가 필요할까?😋왜 필요할까?react-query가 제공해주는 SSR 환경에서 사용법을 보면서 한가지 의문이 들었습니다. react query가 제공해주는 캐싱, 리페칭 등등의 기능들이 매력적이긴한데...사실 대부분의 기능은 캐싱 , revalidate 같은 부분은next.js가 제공해주는 확장된 fetch 함수로도 충분하지 않나?? 그렇다면 next.js에서 react-query를 꽤나 복잡한 설정을 꾸역꾸역 설정하며 굳이굳이 사용할 필요성이 있을까?라는 의문이 들었습니다. 물론 아직 제공되지 않는 부분도 많을 것 같습니다.하지만 꼭 필요할까?라고 묻는다면 좀 애매할 것 같았습니다.그러던 중 You Might Not Need React Query라는 글을 발견했어요https://tkdodo.eu/blog/you-m.. wono | discuss | tweet
+ it blog react zustand [우아콘 2023] 프론트엔드 상태관리 실전 편 with React Query & ZustandStore가 너무 크고 복잡해요.Store에 상태관리보다 API 호출 코드가 더 많아요.Redux나 MobX가 비동기 통신에 적합한 도구일까요?이러한 고민 끝에 React Query라는 도구를 도입하게됩니다.Store는 간단한데 컴포넌트가 복잡해진 것 같아요.Clien wono | discuss | tweet
+ it blog react 카카오페이 프론트엔드 개발자들이 React Query를 선택한 이유 | 카카오페이 기술 블로그카카오페이 프론트엔드 개발자들이 React Query를 선택한 이유에 대해 설명합니다. 이 글은 연작 중 1편에 해당합니다. 1편: 카카오페이 프론트엔드 개발자들이 React Query를 선택한 이유, 2편: React Query와 함께 선언적 UI를 구성하는 방법 wono | discuss | tweet
+ it blog arc fe state React 상태 관리 라이브러리 비교하기 | bandal.devContext-API, Recoil, Redux, Zustand에 대해 비교해보겠습니다. wono | discuss | tweet
+ it blog lang 왜 Svelte 프로젝트는 TypeScript에서 JSDoc으로 이전하는가? | Daniel Lee최근 TypeScript로 짜여있던 Svelte 코드를 JS+JSDoc 다시 작성한다는 소식이 JS커뮤니티를 떠들썩하게 했는데요, 이에 대한 @Rich_Harris의 답변이 인상적입니다: → Svelte팀은 TS의 지원을 중단하는 것이 아닙니다. Type safety를 포기하는 것도 아닙니다. wono | discuss | tweet
+ it dev sveltekit Our design pattern for SvelteKit - how we organize our projects wono | discuss | tweet
+ it dev sveltekit api SvelteKit API Endpoints And Loading Data For PagesLearn about API endpoints and loading data for your pages with SvelteKit. wono | discuss | tweet
+ it dev nextjs shadcnui addon shadcn/ui add components and resourcesI often need some extra components / libraries that are ready to use in a shadcn/ui project, and with time I gathered some great resources. A set of utilities to create data tables with many useful… wono | discuss | tweet
+ it dev nextjs shadcnui shadcn/ui expansionsshadcnui expansion: Simple infinite scroll component. You have fully control over the loading spinner and IntersectionObserver API. wono | discuss | tweet
+ it dev nextjs shadcnui Shadcn infinite scroll exampleIn this post, let's explore how you can add infinite scroll functionality to your app using shadcn.... wono | discuss | tweet
+ it blog nextjs lighthouse Lighthouse로 Next.js 성능 44% 개선하기Lighthouse를 이용해서 Next.js 프로젝트의 성능을 최적화 했던 방법들을 공유하고자 합니다. wono | discuss | tweet
+ it dev python fastapi Python and FastAPI tutorial in Visual Studio CodePython FastAPI tutorial showing IntelliSense and debugging support in Visual Studio Code, the best Python IDE. wono | discuss | tweet
+ it dev python fastapi 4-09 Gunicorn 사용하기운영 환경에서 FastAPI 서버를 구동하기 위해서는 AWS 터미널에서 다음과 같은 명령을 실행해야 한다. ```no-highlight $ uvicorn main:app --r… wono | discuss | tweet
+ it dev python fastapi FastAPI의 Uvicorn + Gunicorn 결합은 반드시 필요한 것인가?개요 FastAPI는 비동기 프레임워크로 ASGI 서버를 지원하는 Uvicorn 과 함께 기동되어 사용된다. 다른 Flask, Django와 비교하여 성능이 2배정도 빠르다고 알려져있다. 하지만 성능이 빠르다고한들 개발자가 사용방법을 모르고 개발한다면 제대로 된 성능을 끌어올리기에는 어려움이 있을 수 있다. 우리는 정말 제대로 알고 사용하고 있는것인가? 이번 포스팅에서는 Uvicorn이 반드시 Guicorn과 결합이 필요한지에 대하여 알아보고자한다. 배경지식 Gunicorn이란 무엇인가? Gunicorn 은 WSGI 프로토콜을 사용하여 웹 애플리케이션과 상호 작용하는 서버이자 프로세스 관리자이다. Flask 또는 Django 와 같은 WSGI 동기식 웹 프레임워크로 작성된 애플리케이션을 제공한다. Gun.. wono | discuss | tweet