How to use the react-on-rails.registerStore function in react-on-rails

To help you get started, we’ve selected a few react-on-rails examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shakacode / react-webpack-rails-tutorial / client / app / bundles / comments / startup / clientRegistration.jsx View on Github external
// Initizalize all locales for react-intl.
addLocaleData([...en, ...de, ...ja, ...zh]);

ReactOnRails.setOptions({
  traceTurbolinks: process.env.TRACE_TURBOLINKS, // eslint-disable-line no-undef
});

ReactOnRails.register({
  App,
  RouterApp,
  NavigationBarApp,
  SimpleCommentScreen,
});

ReactOnRails.registerStore({
  routerCommentsStore,
  commentsStore,
});
github Limenius / symfony-react-sandbox / client / js / serverRegistration.js View on Github external
import ReactOnRails from 'react-on-rails'
import RecipesApp from './recipes/startup/RecipesAppServer'
import RecipesAppRedux from './recipes-redux/startup/RecipesAppServer'
import LiformExample from './liform/startup/LiformExample'
import configureStore from './recipes-redux/store/RecipesStore'
import configureAdminStore from './liform/store/configureStore'

ReactOnRails.register({ RecipesApp })

// For the redux version
ReactOnRails.registerStore({ recipesStore: configureStore })
ReactOnRails.register({ RecipesAppRedux })

// Liform example
ReactOnRails.registerStore({ recipesAdminStore: configureAdminStore })
ReactOnRails.register({ LiformExample })
github shakacode / react_on_rails / spec / dummy_no_webpacker / client / app / startup / clientRegistration.jsx View on Github external
ReduxApp,
  ReduxSharedStoreApp,
  HelloWorldApp,
  RouterApp,
  PureComponent,
  CssModulesImagesFontsExample,
  ManualRenderApp,
  DeferredRenderApp,
  CacheDisabled,
  RenderedHtml,
  ReactHelmetApp,
  ImageExample,
  SetTimeoutLoggingApp,
});

ReactOnRails.registerStore({
  SharedReduxStore,
});
github Limenius / symfony-react-sandbox / client / js / liform / startup / clientRegistration.js View on Github external
import ReactOnRails from 'react-on-rails'
import LiformExample from './LiformExample'
import configureStore from '../store/configureStore'

const recipesStore = configureStore

ReactOnRails.register({ LiformExample })
ReactOnRails.registerStore({ recipesAdminStore: recipesStore })
github Limenius / symfony-react-sandbox / assets / js / liform / startup / registration.js View on Github external
import ReactOnRails from "react-on-rails";
import Admin from "./Admin";
import configureStore from "../store/configureStore";

const recipesStore = configureStore;

ReactOnRails.register({ Admin });
ReactOnRails.registerStore({ recipesAdminStore: recipesStore });
github shakacode / react-webpack-rails-tutorial / client / app / bundles / comments / startup / serverRegistration.jsx View on Github external
import RouterApp from './ServerRouterApp';
import SimpleCommentScreen from '../components/SimpleCommentScreen/SimpleCommentScreen';
import NavigationBarApp from './NavigationBarApp';
import routerCommentsStore from '../store/routerCommentsStore';
import commentsStore from '../store/commentsStore';

ReactOnRails.register(
  {
    App,
    RouterApp,
    NavigationBarApp,
    SimpleCommentScreen,
  },
);

ReactOnRails.registerStore({
  routerCommentsStore,
  commentsStore,
});
github shakacode / react_on_rails / spec / dummy_no_webpacker / client / app / startup / serverRegistration.jsx View on Github external
HelloWorldES5,
  ReduxApp,
  ReduxSharedStoreApp,
  HelloWorldApp,
  RouterApp,
  HelloString,
  PureComponent,
  CssModulesImagesFontsExample,
  DeferredRenderApp,
  RenderedHtml,
  ReactHelmetApp,
  ImageExample,
  SetTimeoutLoggingApp,
});

ReactOnRails.registerStore({
  SharedReduxStore,
});
github shakacode / react_on_rails / spec / dummy / client / app / startup / clientRegistration.jsx View on Github external
ReduxApp,
  ReduxSharedStoreApp,
  HelloWorldApp,
  RouterApp,
  PureComponent,
  CssModulesImagesFontsExample,
  ManualRenderApp,
  DeferredRenderApp,
  CacheDisabled,
  RenderedHtml,
  ReactHelmetApp,
  ImageExample,
  SetTimeoutLoggingApp,
});

ReactOnRails.registerStore({
  SharedReduxStore,
});
github shakacode / react_on_rails / spec / dummy / client / app / startup / serverRegistration.jsx View on Github external
HelloWorldRehydratable,
  ReduxApp,
  ReduxSharedStoreApp,
  HelloWorldApp,
  RouterApp,
  HelloString,
  PureComponent,
  CssModulesImagesFontsExample,
  DeferredRenderApp,
  RenderedHtml,
  ReactHelmetApp,
  ImageExample,
  SetTimeoutLoggingApp,
});

ReactOnRails.registerStore({
  SharedReduxStore,
});
github Limenius / symfony-react-sandbox / assets / js / recipes-redux / startup / registration.js View on Github external
import ReactOnRails from "react-on-rails";
import RecipesAppRedux from "./RecipesApp";
import configureStore from "../store/RecipesStore";

const recipesStore = configureStore;

ReactOnRails.registerStore({ recipesStore });
ReactOnRails.register({ RecipesAppRedux });

react-on-rails

react-on-rails JavaScript for react_on_rails Ruby gem

MIT
Latest version published 12 days ago

Package Health Score

92 / 100
Full package analysis