react-x

Cross-platform React interfaces for ReactDOM and React Native.

Usage no npm install needed!

<script type="module">
  import reactX from 'https://cdn.skypack.dev/react-x';
</script>

README

react-x

npm npm npm

Cross-platform React components for ReactDOM and React Native.

Getting Started

Install react-x using yarn:

yarn add react-x

Setup

React Native

No additional setup required for react-native.

React DOM

If using Webpack, you need to add the .dom.js extension to the extensions array.

module.exports = {
  resolve: {
    extensions: ['.dom.js', '.js', '.json'],
  },
};

Motivation

Usage

Contributing

If you have any ideas on how this module could be better, create an Issue or submit a PR.

Special Thanks

A special thanks to @donavon for allowing me to use the react-x package name!