1 min read

Practice React by fixing tests - Check your JSX knowledge!

Practice React by fixing tests - Check your JSX knowledge!

How would you evaluate your knowledge of JSX?

Working with JSX is one of those fundamental skills when working with React that we don't even think about. But behind the surface, there's a lot of things to keep in mind and which make it different from working with HTML and Javascript directly.

Working with JSX involves:
- displaying info from variables - strings, objects
- using Javascript expressions inside JSX
- converting HTML to JSX
- knowing the JSX rules - e.g. only one root element etc.

Where do you think you stand?

Check your knowledge by fixing these failing unit tests!

  1. Clone the repo and run `npm install`
  2. Run the tests with `npm run test`
  3. Open the test file and fix the tests one by one!

If you don't feel like checking out the repo, you can also just fork this CodeSandbox and run the tests in the browser ;)