18
loading...
This website collects cookies to deliver better user experience
They are easy to test, debug and refactor as they are written in plain Javascript functions without state and lifecycle hooks.
Reduce the number of lines of code
Eliminate the use of ‘this’
Gives freedom to build a custom component with CSS
Enforce the use of props in the place of classes
Supports server-side rendering with stylesheet rehydration
Can perform unit testing with Jest Styled Component- A set of utilities to test style components with Jest.
The component should be PascalCase
Elements that need key should be unique
Methods should be written in camelCase and not be application-specific
Unit Testing to check individual components of React application.
Integration Testing to check if different pieces of models are working well together.
End to end testing to check the entire application flow.