Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 2.33 KB

README.md

File metadata and controls

59 lines (40 loc) · 2.33 KB

React X

npm npm npm CircleCI Travis AppVeyor Coveralls

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-keychain npm Persistent storage for React DOM (cookies) and React Native (keychain).

Components

Component Version Description
react-x-render npm Conditional rendering based on if/unless conditions.
react-x-switch npm 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.