<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/introduction-to-testing-in-react-ccs36vomr" -->

---
title: Introduction To Testing In React | daily.dev
description: Testing is a line-by-line review of how your code is going to execute. Unit testing refers to testing individual pieces of your code. Functional testing is...
canonical: https://daily.dev/posts/introduction-to-testing-in-react-ccs36vomr
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Introduction To Testing In React | daily.dev
og:description: Testing is a line-by-line review of how your code is going to execute. Unit testing refers to testing individual pieces of your code. Functional testing is...
og:url: https://daily.dev/posts/introduction-to-testing-in-react-ccs36vomr
og:image: https://api.daily.dev/og/posts/CCS36VomR.png
og:image:alt: Introduction To Testing In React
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction To Testing In React

**[daily.dev](https://daily.dev/sources/daily)** · 12 upvotes · 4 comments

## Summary

Testing is a line-by-line review of how your code is going to execute. Unit testing refers to testing individual pieces of your code. Functional testing is more focused on testing the behavior of our component. Integration testing tests the entire service of our application and attempts to replicate the experience an end-user would experience when using our application.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://daily.dev/posts/introduction-to-testing-in-react>

## Community discussion

Top comments from developers on daily.dev.

**@garvnanwani** · 4 upvotes

> Author here,
> If you have a doubt related to testing or anything in particular, feel free to drop a comment below. I will be happy to help you out :)

**@mihai** · 3 upvotes

> Please give Kent C. Dodd's react-testing-library a try. This is by far the most dev friendly and intuitive library I've used in the React ecosystem so far.

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#react](https://daily.dev/tags/react), [#testing](https://daily.dev/tags/testing)

[View this post on daily.dev](https://daily.dev/posts/introduction-to-testing-in-react-ccs36vomr)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Introduction To Testing In React","url":"https://daily.dev/posts/introduction-to-testing-in-react-ccs36vomr","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/introduction-to-testing-in-react-ccs36vomr"},"datePublished":"2020-10-07T17:25:13.831Z","dateModified":"2021-10-07T14:17:10.317Z","description":"Testing is a line-by-line review of how your code is going to execute. Unit testing refers to testing individual pieces of your code. Functional testing is...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b2441a471474ac7eed8b909695bbc068","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/b2441a471474ac7eed8b909695bbc068","isAccessibleForFree":true,"articleSection":"daily.dev","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"daily.dev","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/daily2","url":"https://daily.dev/sources/daily"},"commentCount":4,"discussionUrl":"https://daily.dev/posts/introduction-to-testing-in-react-ccs36vomr","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":12},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":4}],"keywords":"general-programming,react,testing"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"daily.dev","item":"https://daily.dev/sources/daily"},{"@type":"ListItem","position":3,"name":"Introduction To Testing In React"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/introduction-to-testing-in-react-ccs36vomr","comment":[{"@type":"Comment","text":"Author here,\nIf you have a doubt related to testing or anything in particular, feel free to drop a comment below. I will be happy to help you out :)","datePublished":"2020-10-07T17:43:31.630Z","url":"https://daily.dev/posts/CCS36VomR#c-ggLu_UGas","author":{"@type":"Person","name":"Garv nanwani","url":"https://daily.dev/garvnanwani","image":"https://avatars3.githubusercontent.com/u/36405030?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":4}},{"@type":"Comment","text":"Please give Kent C. Dodd’s react-testing-library a try. This is by far the most dev friendly and intuitive library I’ve used in the React ecosystem so far.","datePublished":"2020-10-07T18:23:48.224Z","url":"https://daily.dev/posts/CCS36VomR#c-XhsCpnyYV","author":{"@type":"Person","name":"mihai","url":"https://daily.dev/mihai","image":"https://avatars2.githubusercontent.com/u/15910058?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3}}]}
```

