micronaut-views icon indicating copy to clipboard operation
micronaut-views copied to clipboard

React Renderer shouldn't require a separate components file

Open mikehearn opened this issue 1 year ago • 0 comments

Feature description

Currently the React Renderer expects you to compile one or more bundles of components, and also lets you optionally supply a custom render script. The idea is that render scripts are generic, whereas the bundles are app specific.

It turns out that some users find it easier to just create a render script that does everything rather than use the split mechanism. In that case you have to create a fake bundle, which is a bit silly. It'd be better if we made the ssr-components.mjs file optional.

mikehearn avatar Aug 14 '24 12:08 mikehearn