Cross-platform React components for ReactDOM and React Native.
yarn add react-x
No additional setup required for react-native.
If using Webpack, you need to add the
.dom.js extension to the extensions array.
moduleexports =resolve:extensions: '.dom.js' '.js' '.json';
A special thanks to @donavon for allowing me to use the
react-x package name!