Defer the evaluation of children for specific React components without function syntax.
npm install babel-plugin-react-deferred-children
plugins: [
["react-deferred-children", {
"elements": [ "Loader", "If" ]
}]
]
`What it does
In:
`
`Out:
`
{() => }
``