10 lines
324 B
JavaScript
10 lines
324 B
JavaScript
// By default, this pack is loaded for server-side rendering.
|
|
// It must expose react_ujs as `ReactRailsUJS` and prepare a require context.
|
|
const componentRequireContext = require.context(
|
|
'server_side_components',
|
|
true,
|
|
);
|
|
const ReactRailsUJS = require('react_ujs');
|
|
|
|
ReactRailsUJS.useContext(componentRequireContext);
|