Sha256: 99b2b6f9fd21264a477c7c5c2e16d7a5a6a1c45ffca6776db52a1437390dda8f

Contents?: true

Size: 432 Bytes

Versions: 2

Compression:

Stored size: 432 Bytes

Contents

import React from 'react';
import ReactOnRails from 'react-on-rails';

import HelloWorldContainer from '../containers/HelloWorldContainer';

// _railsContext is the Rails context, providing contextual information for rendering
const HelloWorldApp = (props, _railsContext) => (
  <HelloWorldContainer {...props} />
);

// This is how react_on_rails can see the HelloWorldApp in the browser.
ReactOnRails.register({ HelloWorldApp });

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
react_on_rails-6.2.1 lib/generators/react_on_rails/templates/no_redux/base/client/app/bundles/HelloWorld/startup/HelloWorldApp.jsx.tt
react_on_rails-6.2.1.rc.3 lib/generators/react_on_rails/templates/no_redux/base/client/app/bundles/HelloWorld/startup/HelloWorldApp.jsx.tt