Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// 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,
});
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 })
ReduxApp,
ReduxSharedStoreApp,
HelloWorldApp,
RouterApp,
PureComponent,
CssModulesImagesFontsExample,
ManualRenderApp,
DeferredRenderApp,
CacheDisabled,
RenderedHtml,
ReactHelmetApp,
ImageExample,
SetTimeoutLoggingApp,
});
ReactOnRails.registerStore({
SharedReduxStore,
});
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 })
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 });
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,
});
HelloWorldES5,
ReduxApp,
ReduxSharedStoreApp,
HelloWorldApp,
RouterApp,
HelloString,
PureComponent,
CssModulesImagesFontsExample,
DeferredRenderApp,
RenderedHtml,
ReactHelmetApp,
ImageExample,
SetTimeoutLoggingApp,
});
ReactOnRails.registerStore({
SharedReduxStore,
});
ReduxApp,
ReduxSharedStoreApp,
HelloWorldApp,
RouterApp,
PureComponent,
CssModulesImagesFontsExample,
ManualRenderApp,
DeferredRenderApp,
CacheDisabled,
RenderedHtml,
ReactHelmetApp,
ImageExample,
SetTimeoutLoggingApp,
});
ReactOnRails.registerStore({
SharedReduxStore,
});
HelloWorldRehydratable,
ReduxApp,
ReduxSharedStoreApp,
HelloWorldApp,
RouterApp,
HelloString,
PureComponent,
CssModulesImagesFontsExample,
DeferredRenderApp,
RenderedHtml,
ReactHelmetApp,
ImageExample,
SetTimeoutLoggingApp,
});
ReactOnRails.registerStore({
SharedReduxStore,
});
import ReactOnRails from "react-on-rails";
import RecipesAppRedux from "./RecipesApp";
import configureStore from "../store/RecipesStore";
const recipesStore = configureStore;
ReactOnRails.registerStore({ recipesStore });
ReactOnRails.register({ RecipesAppRedux });