Skip to content

Commit 69ec0ae

Browse files
committed
2 parents b646bd6 + 2e04435 commit 69ec0ae

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@
383383

384384
1. ### What is React?
385385

386-
React(aka React.js or ReactJS) is an **open-source front-end JavaScript library** that is used for building composable user interfaces, especially for single-page applications. It is used for handling view layer for web and mobile apps based on components in a declarative approach.
386+
React (aka React.js or ReactJS) is an **open-source front-end JavaScript library** that is used for building composable user interfaces, especially for single-page applications. It is used for handling view layer for web and mobile apps based on components in a declarative approach.
387387

388388
React was created by [Jordan Walke](https://github.com/jordwalke), a software engineer working for Facebook. React was first deployed on Facebook's News Feed in 2011 and on Instagram in 2012.
389389

@@ -5982,9 +5982,7 @@
59825982
59835983
274. ### What are loadable components?
59845984
5985-
If you want to do code-splitting in a server rendered app, it is recommend to use Loadable Components because React.lazy and Suspense is not yet available for server-side rendering. Loadable lets you render a dynamic import as a regular component.
5986-
5987-
Lets take an example,
5985+
With the release of React 18, React.lazy and Suspense are now available for server-side rendering. However, prior to React 18, it was recommended to use Loadable Components for code-splitting in a server-side rendered app because React.lazy and Suspense were not available for server-side rendering. Loadable Components lets you render a dynamic import as a regular component. For example, you can use Loadable Components to load the OtherComponent in a separate bundle like this:
59885986
59895987
```javascript
59905988
import loadable from "@loadable/component";
@@ -6001,6 +5999,9 @@
60015999
```
60026000
60036001
Now OtherComponent will be loaded in a separated bundle
6002+
Loadable Components provides additional benefits beyond just code-splitting, such as automatic code reloading, error handling, and preloading. By using Loadable Components, you can ensure that your application loads quickly and efficiently, providing a better user experience for your users.
6003+
6004+
60046005
60056006
**[⬆ Back to Top](#table-of-contents)**
60066007

0 commit comments

Comments
 (0)