React X
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'],
},
};
APIs
API | Version | Description |
---|---|---|
react-x-clipboard |
Clipboard module for React DOM and React Native. | |
react-x-keychain |
Persistent storage for React DOM (cookies) and React Native (keychain). |
Components
Component | Version | Description |
---|---|---|
react-x-primitives |
Set of primitive components to render across targets. | |
react-x-render |
Conditional rendering based on if/unless conditions. | |
react-x-svg |
Cross-platform SVG support for ReactDOM and React Native. | |
react-x-switch |
Switch component for toggling on/off. |
Contributing
If you have any ideas on how this module could be better, create an Issue or submit a PR.