Tag: React
All the articles with the tag "React".
How to test a className with Jest and React testing library
Published: at 02:53 PMHow to test className with react testing library's container, selector option, and role selectors to enhance codebase resiliency
How to Test Custom Hooks with React Testing Library and Jest
Updated: at 10:08 AMLearn how to test your custom React Hooks with React Testing Library and Jest. You'll find an interactive Codesandox at the end of the post.
How to Write Stronger Unit Tests with Jest
Updated: at 10:08 AMWe'll explore why weak tests can leave changes in behavior to land unnoticeably and what we can do to catch these changes early.
Test complex DOM structures with React Testing Library
Updated: at 10:07 AMOptimize DOM Testing using React Testing Library for enhanced accuracy, maintainability, and precise UI targeting with specific queries and options
How to build static web apps with dynamic routes in Next.js 13
Updated: at 01:24 PMThis article will show you how to take advantage of the latest Next.js features: appDir and React Server Components.
How to solve ”variable is possibly undefined” in TypeScript - even when it’s defined
Updated: at 03:11 PMLearn how to solve the "variable is possibly undefined" error in TypeScript and avoid nesting with ternary operators in React