Put in order · JavaScript and React course · Module 13: Testing React

Rendering syntax in RTL

Arrange the steps for rendering and testing a component in RTL in the correct order:

Items to put in order

  • );
  • screen.getByText(
  • )
  • <App />
  • render(
  • 'Hello'

You can check the correct answer by solving this task in the CodeWorlds game.