How to use the react-on-rails.register 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 PetrNikolas / niklick / client / app / bundles / Home / startup / registration.jsx View on Github external
// Import React on Rails lib
import ReactOnRails from 'react-on-rails';

// Import components
import Home from '../containers/Home';

// This is how react_on_rails can see the components in the browser.
ReactOnRails.register({
  Home,
});
github hlcfan / pokr / client / app / bundles / Room / startup / registration.jsx View on Github external
import ReactOnRails from 'react-on-rails';

import Room from '../containers/Room'
import RoomMobile from '../containers/RoomMobile'

// This is how react_on_rails can see the HelloWorld in the browser.
ReactOnRails.register({
  Room, RoomMobile
});
github shakacode / react_on_rails / spec / dummy / client / app / startup / clientRegistration.jsx View on Github external
// 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,
  DeferredRenderApp,
  CacheDisabled,
  RenderedHtml,
  ReactHelmetApp,
github JessicaML / ScienceMotions-rails / app / javascript / packs / container-bundle.js View on Github external
import ReactOnRails from "react-on-rails";

import Container from "../bundles/Container/components/Container";
import Team from "../bundles/Container/components/Team";
import Indicators from "../bundles/Container/components/lessons/Indicators";
import DNA from "../bundles/Container/components/lessons/DNA";
import Eye from "../bundles/Container/components/lessons/Eye";
import Atoms from "../bundles/Container/components/lessons/Atoms";
import CellsTissuesOrgans from "../bundles/Container/components/lessons/CellsTissuesOrgans";
import Sound from "../bundles/Container/components/lessons/Sound";
import Classification from "../bundles/Container/components/lessons/Classification";

// This is how react_on_rails can see the HelloWorld in the browser.
ReactOnRails.register({
  Container,
  Team,
  Indicators,
  DNA,
  Eye,
  Atoms,
  CellsTissuesOrgans,
  Sound,
  Classification
});
github shakacode / react_on_rails / spec / dummy / client / app / startup / serverRegistration.jsx View on Github external
// Deferred render on the client side w/ server render
import DeferredRenderApp from './DeferredRenderAppServer';

// Deferred render on the client side w/ server render
import RenderedHtml from './ServerRenderedHtml';

// Deferred render on the client side w/ server render with additional HTML strings:
import ReactHelmetApp from './ReactHelmetServerApp';

// Demonstrate using Images
import ImageExample from '../components/ImageExample';

import SetTimeoutLoggingApp from './SetTimeoutLoggingApp';

ReactOnRails.register({
  BrokenApp,
  HelloWorld,
  HelloWorldWithLogAndThrow,
  HelloWorldES5,
  HelloWorldRehydratable,
  ReduxApp,
  ReduxSharedStoreApp,
  HelloWorldApp,
  RouterApp,
  HelloString,
  PureComponent,
  CssModulesImagesFontsExample,
  DeferredRenderApp,
  RenderedHtml,
  ReactHelmetApp,
  ImageExample,
github shakacode / react_on_rails / spec / dummy_no_webpacker / client / app / startup / clientRegistration.jsx View on Github external
// 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,
  CacheDisabled,
  RenderedHtml,
  ReactHelmetApp,
  ImageExample,
github cerner / kaiju / rails / client / app / bundles / kaiju / startup / launchPageRegistration.jsx View on Github external
import ReactOnRails from 'react-on-rails';
import LaunchPage from '../components/LaunchPage/LaunchPage';

ReactOnRails.register({
  LaunchPage,
});
github cerner / kaiju / rails / client / app / bundles / kaiju / startup / attributesRegistration.jsx View on Github external
import ReactOnRails from 'react-on-rails';
import Attributes from '../components/Attributes/Attributes';

ReactOnRails.register({
  Attributes,
});
github cerner / kaiju / rails / client / app / bundles / kaiju / startup / componentRegistration.jsx View on Github external
import ReactOnRails from 'react-on-rails';
import Component from '../components/Component/Component';

ReactOnRails.register({
  Component,
});
github cerner / terra-ui / client / app / bundles / App / startup / registration.jsx View on Github external
import ReactOnRails from 'react-on-rails';

import App from '../Routes';

ReactOnRails.register({
  App,
});

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