houdini/app/javascript/packs/server_rendering.js

6 lines
300 B
JavaScript
Raw Normal View History

2020-06-22 22:44:19 +00:00
// By default, this pack is loaded for server-side rendering.
// It must expose react_ujs as `ReactRailsUJS` and prepare a require context.
var componentRequireContext = require.context("components", true);
var ReactRailsUJS = require("react_ujs");
ReactRailsUJS.useContext(componentRequireContext);