Closed EdenCoder closed 5 years ago
You can simply do
import { register } from 'riot'
// an index file of all your components as array
// requireDir or webpack.context will work as well
const components = require('./components')
// register all the components globally
components.forEach(component => {
riot.register(component.name, component)
})
Is there no way to render nested without components object?
This only ever renders the root component, though all other compnents are registered within
@riotjs/ssr/register