Tag: React
All the articles with the tag "React".
Understanding Jest Snapshots: A Beginner's Guide to Snapshot Testing
Updated: at 05:14 AMGet started with Jest Snapshots: beginner's guide to snapshot testing, usage, updates, and other React component testing techniques
Keeping React Components Manageable: Dodge Overcomplication and Ensure Business Logic Stays in Place
Published: at 05:19 AMOptimize React components by separating logic, simplifying, and ensuring adaptability for evolving SaaS UI and business needs
Create a Job Board with Next.js 13 and Airtable
Published: at 04:59 AMBuild a static, SEO-friendly job board using Next.js 13, Airtable, TailwindCSS; easy integration, no backend, free version compatible
How to test a className with Jest and React testing library
Updated: at 08:20 PMReact Testing Library has no getByClassName. Query by role or text, assert the class with toHaveClass, and use querySelector only when you need a class name.
Test complex DOM structures with React Testing Library
Updated: at 06:24 AMOptimize DOM Testing using React Testing Library for enhanced accuracy, maintainability, and precise UI targeting with specific queries and options
How to Test Props in React with Jest
Updated: at 04:16 PMMock a child React component with Jest, render its props as text, and assert that the parent passed the props you expect.