mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
added note about version between react-test-render using with react & react-dom
This commit is contained in:
@@ -19,6 +19,8 @@ This package provides a React renderer that can be used to render React componen
|
||||
|
||||
Essentially, this package makes it easy to grab a snapshot of the platform view hierarchy (similar to a DOM tree) rendered by a React DOM or React Native component without using a browser or [jsdom](https://github.com/tmpvar/jsdom).
|
||||
|
||||
**Note:** make sure `react-test-renderer` version is the same with `react`, `react-dom` version.
|
||||
|
||||
Example:
|
||||
|
||||
```javascript
|
||||
|
||||
Reference in New Issue
Block a user