-
Notifications
You must be signed in to change notification settings - Fork 65
react-dom-server-index #63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,49 +1,49 @@ | ||||||
--- | ||||||
title: Server React DOM APIs | ||||||
title: Server React DOM API | ||||||
--- | ||||||
|
||||||
<Intro> | ||||||
|
||||||
The `react-dom/server` APIs let you render React components to HTML on the server. These APIs are only used on the server at the top level of your app to generate the initial HTML. A [framework](/learn/start-a-new-react-project#production-grade-react-frameworks) may call them for you. Most of your components don't need to import or use them. | ||||||
`react-dom/server` API গুলো আপনাকে সার্ভারে React কম্পোনেন্টকে HTML এ রেন্ডার করার সুযোগ দেয়। প্রাথমিক HTML তৈরীর জন্য এই API গুলো কেবল মাত্র সার্ভারে আপনার অ্যাপের একদম উপরের লেভেলে ব্যবহৃত হয়। আপনার হয়ে একটা [ফ্রেমওয়ার্ক](/learn/start-a-new-react-project#production-grade-react-frameworks) এই API গুলোকে কল দিতে পারে। আপনার বেশিরভাগ কম্পোনেন্টের এগুলোকে ব্যবহারের দরকার পড়বে না। | ||||||
|
||||||
</Intro> | ||||||
|
||||||
--- | ||||||
|
||||||
## Server APIs for Node.js Streams {/*server-apis-for-nodejs-streams*/} | ||||||
## Node.js Stream জন্য Server API {/*server-apis-for-nodejs-streams*/} | ||||||
|
||||||
These methods are only available in the environments with [Node.js Streams:](https://nodejs.org/api/stream.html) | ||||||
[Node.js Streams](https://nodejs.org/api/stream.html) সহ এনভায়রনমেন্ট গুলোতে কেবল এই মেথডগুলো পাওয়া যাবেঃ | ||||||
|
||||||
* [`renderToPipeableStream`](/reference/react-dom/server/renderToPipeableStream) renders a React tree to a pipeable [Node.js Stream.](https://nodejs.org/api/stream.html) | ||||||
* [`renderToStaticNodeStream`](/reference/react-dom/server/renderToStaticNodeStream) renders a non-interactive React tree to a [Node.js Readable Stream.](https://nodejs.org/api/stream.html#readable-streams) | ||||||
* [`renderToPipeableStream`](/reference/react-dom/server/renderToPipeableStream) একটা React ট্রিকে একটা pipeable [Node.js Stream](https://nodejs.org/api/stream.html) এ রেন্ডার করে। | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
* [`renderToStaticNodeStream`](/reference/react-dom/server/renderToStaticNodeStream) একটা নন-ইন্টার্যাকটিভ React ট্রিকে একটা [Node.js Readable Stream.](https://nodejs.org/api/stream.html#readable-streams) এ রেন্ডার করে। | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
--- | ||||||
|
||||||
## Server APIs for Web Streams {/*server-apis-for-web-streams*/} | ||||||
## Web Stream এর জন্য Server API {/*server-apis-for-web-streams*/} | ||||||
nomandhoni-cs marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
These methods are only available in the environments with [Web Streams](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API), which includes browsers, Deno, and some modern edge runtimes: | ||||||
[Web Stream](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API) সহ এনভায়রনমেন্ট গুলোতে (যার মধ্যে রয়েছে ব্রাউজার, Deno এবং কিছু আধুনিক Edge runtime) কেবল এই মেথডগুলো পাওয়া যাবেঃ | ||||||
|
||||||
* [`renderToReadableStream`](/reference/react-dom/server/renderToReadableStream) renders a React tree to a [Readable Web Stream.](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream) | ||||||
* [`renderToReadableStream`](/reference/react-dom/server/renderToReadableStream) একটা React ট্রিকে একটা [Readable Web Stream](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream) এ রেন্ডার করে। | ||||||
nomandhoni-cs marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
--- | ||||||
|
||||||
## Server APIs for non-streaming environments {/*server-apis-for-non-streaming-environments*/} | ||||||
## Non-streaming এনভায়রনমেন্টের জন্য Server API {/*server-apis-for-non-streaming-environments*/} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. এখানে সমূহ দিচ্ছি তবে বাংলা ভাষায় যখন আমরা plural করি, বেশিরভাগ ক্ষেত্রেই অতিরিক্ত suffix ছাড়া কাজ হয়। There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nafistiham Thanks bhai, notun jinish sikhlam |
||||||
|
||||||
These methods can be used in the environments that don't support streams: | ||||||
These methods can be used in the environments that don't support streams: এই মেথডগুলো সেই সব এনভায়রনমেন্টে ব্যবহার করা যাবে যেগুলো stream সাপোর্ট করে না। | ||||||
|
||||||
* [`renderToString`](/reference/react-dom/server/renderToString) renders a React tree to a string. | ||||||
* [`renderToStaticMarkup`](/reference/react-dom/server/renderToStaticMarkup) renders a non-interactive React tree to a string. | ||||||
* [`renderToString`](/reference/react-dom/server/renderToString) একটা React ট্রিকে একটা স্ট্রিং এ রেন্ডার করে। | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
* [`renderToStaticMarkup`](/reference/react-dom/server/renderToStaticMarkup) একটা নন-ইন্টার্যাকটিভ React ট্রিকে একটা স্ট্রিং এ রেন্ডার করে। | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
They have limited functionality compared to the streaming APIs. | ||||||
Streaming API গুলোর তুলনার এদের ফাংশনালিটি সীমাবদ্ধ। | ||||||
|
||||||
--- | ||||||
|
||||||
## Deprecated server APIs {/*deprecated-server-apis*/} | ||||||
## Deprecated server API {/*deprecated-server-apis*/} | ||||||
nomandhoni-cs marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
<Deprecated> | ||||||
|
||||||
These APIs will be removed in a future major version of React. | ||||||
এই API গুলো ভবিষ্যতে React এর কোন major ভার্সনে বাদ দেওয়া হবে। | ||||||
|
||||||
</Deprecated> | ||||||
|
||||||
* [`renderToNodeStream`](/reference/react-dom/server/renderToNodeStream) renders a React tree to a [Node.js Readable stream.](https://nodejs.org/api/stream.html#readable-streams) (Deprecated.) | ||||||
* [`renderToNodeStream`](/reference/react-dom/server/renderToNodeStream) একটা React ট্রিকে একটা [Node.js Readable stream](https://nodejs.org/api/stream.html#readable-streams) এ রেন্ডার করে (Deprecated)। | ||||||
nomandhoni-cs marked this conversation as resolved.
Show resolved
Hide resolved
|
Uh oh!
There was an error while loading. Please reload this page.