The World’s Largest Online Community for Developers

'; javascript - What happens with a component that is inside of a lazy loaded component? - LavOzs.Com

Let's suppose that I have a component that lazy loads (ComponentA), and inside of that component I import a component without lazy loading (ComponentB). Do the componentB lazy loads too?

import ComponentA from 'componentA/loadable';

export default App = () => {
return <ComponentA />;


import ComponentB from '../ComponentB'

export default ComponentA = () => <ComponentB />;

PS: My English skills aren't good enough, but I hope you understand my question.

What is the most efficient way to deep clone an object in JavaScript?
What is the scope of variables in JavaScript?
JavaScript closure inside loops – simple practical example
What is the !! (not not) operator in JavaScript?
What is the JavaScript version of sleep()?
What does “use strict” do in JavaScript, and what is the reasoning behind it?
What is the 'new' keyword in JavaScript?
What is the difference between call and apply?
What is JSONP, and why was it created?
Loop inside React JSX