To use React, you need to create components that use JSX. It shows both the code and the result.