Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import DeferredRenderApp from './DeferredRenderAppRenderer';
import SharedReduxStore from '../stores/SharedReduxStore';
// Deferred render on the client side w/ server render
import RenderedHtml from './ClientRenderedHtml';
// Deferred render on the client side w/ server render with additional HTML strings:
import ReactHelmetApp from './ReactHelmetClientApp';
// Demonstrate using Images
import ImageExample from '../components/ImageExample';
import SetTimeoutLoggingApp from './SetTimeoutLoggingApp';
ReactOnRails.setOptions({
traceTurbolinks: true,
});
ReactOnRails.register({
BrokenApp,
HelloWorld,
HelloWorldWithLogAndThrow,
HelloWorldES5,
ReduxApp,
ReduxSharedStoreApp,
HelloWorldApp,
RouterApp,
PureComponent,
CssModulesImagesFontsExample,
ManualRenderApp,
DeferredRenderApp,
import en from 'react-intl/locale-data/en';
import de from 'react-intl/locale-data/de';
import ja from 'react-intl/locale-data/ja';
import zh from 'react-intl/locale-data/zh';
import App from './App';
import RouterApp from './ClientRouterApp';
import SimpleCommentScreen from '../components/SimpleCommentScreen/SimpleCommentScreen';
import routerCommentsStore from '../store/routerCommentsStore';
import commentsStore from '../store/commentsStore';
import NavigationBarApp from './NavigationBarApp';
// 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 DeferredRenderApp from './DeferredRenderAppClient';
import SharedReduxStore from '../stores/SharedReduxStore';
// Deferred render on the client side w/ server render
import RenderedHtml from './ClientRenderedHtml';
// Deferred render on the client side w/ server render with additional HTML strings:
import ReactHelmetApp from './ReactHelmetClientApp';
// Demonstrate using Images
import ImageExample from '../components/ImageExample';
import SetTimeoutLoggingApp from './SetTimeoutLoggingApp';
ReactOnRails.setOptions({
traceTurbolinks: true,
});
ReactOnRails.register({
BrokenApp,
HelloWorld,
HelloWorldWithLogAndThrow,
HelloWorldES5,
HelloWorldRehydratable,
ReduxApp,
ReduxSharedStoreApp,
HelloWorldApp,
RouterApp,
PureComponent,
CssModulesImagesFontsExample,
ManualRenderApp,