Back to Testing Library

Codesandbox Examples

docs/example-codesandbox.mdx

latest886 B
Original Source

You can find runnable examples for many common use cases on Codesandbox.

<iframe src="https://codesandbox.io/embed/github/kentcdodds/react-testing-library-examples/tree/main/?expanddevtools=1&fontsize=13&hidenavigation=1&initialpath=%2F__tests__%2Fasync.js&module=%2Fsrc%2F__tests__%2Fasync.js&moduleview=1&previewwindow=tests&view=editor" style={{ width: '100%', height: 500, border: 0, borderRadius: 4, overflow: 'hidden', }} sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin" ></iframe>

Playground

Are you looking for a quick way to run queries against your own html instead? Try testing-playground.com