The render
function is used to test normal components, and the renderApp
function is used to test App components.
App components refer to components that contain some Modern.js contexts, such as App root components, Containers using Models, etc.
For the testing of such components, you can use the renderApp
function, which will automatically wrap the context information according to the current modern.config.js
.
renderApp
is the same as render.