It is a form of a test that checks your UI component’s logic. This form of test focuses on the end user and developer (You should write your tests from user’s perspective).
General rules
Always try to use accessibility properties to grab DOM elements
Cleanup after your component test
Tools
React Testing Library
Code Snippet - Component Test with RTL