Socket
Socket
Sign inDemoInstall

rwr-alt

Package Overview
Dependencies
74
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    rwr-alt

This integration makes it possible to populate and share Alt stores between react component located in different part of rails views.


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

rwr-alt

Build Status

Alt.js integration plugin for react_webpack_rails.

This integration makes it possible to populate and share Alt stores between react component located in different part of rails views.

Setup

  • Add rwr-alt to your Gemfile:
gem 'rwr-alt'
  • Install rwr-alt package:
$ npm install --save rwr-alt

Usage

In chosen view, before components are rendered, add:

<%= alt_store('exampleStoreName', foo: @bar) %>

Then connect to store state in components like you usually do in alt .

Contributing

Issues

Found a bug in rwr-alt? Open an issue on GitHub Issues.

Pull requests

Interested in contributing to rwr-alt? That's great, and thank you for your interest!

After checking out the repo, run bundle exec rake setup:all to install every environment dependencies.

To get your contributions accepted, make sure:

  • All the tests pass. Run bundle exec rake test:all.
  • Any new code paths you've added are covered by tests.
  • Describe your changes in pull request (what it adds, how to migrate from previous version etc.)

License

The gem is available as open source under the terms of the MIT License.

Keywords

FAQs

Last updated on 21 Feb 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc