Is it ok/good practice to register all components globally?
Reason
Are there any downside of this?
You generally shouldn't register a component globally if you aren't going to use it frequently throughout your application. Quoting the docs ...
Global registration often isn’t ideal. For example, if you’re using a build system like Webpack, globally registering all components means that even if you stop using a component, it could still be included in your final build. This unnecessarily increases the amount of JavaScript your users have to download.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With