logo

目录

React Testing面试题及答案

React Testing面试题及答案

React Testing

1. What is Shallow Renderer in React testing?

Shallow rendering is useful for writing unit test cases in React. It lets you render a component one level deep and assert facts about what its render method returns, without worrying about the behavior of child components, which are not instantiated or rendered.
本章目录
    1v1免费职业咨询