-
Notifications
You must be signed in to change notification settings - Fork 65
Learn React intro translation #10
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 3 commits
9ec0478
aabee45
5499aae
24bc77b
a77f374
e035132
d961c55
7419681
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -10,20 +10,20 @@ React ডকুমেন্টেশনে স্বাগতম! এই পৃ | |||||
|
|
||||||
| <YouWillLearn> | ||||||
|
|
||||||
| - How to create and nest components | ||||||
| - How to add markup and styles | ||||||
| - How to display data | ||||||
| - How to render conditions and lists | ||||||
| - How to respond to events and update the screen | ||||||
| - How to share data between components | ||||||
| - কিভাবে কম্পোনেন্টস তৈরী করবেন এবং নেস্ট করবেন | ||||||
| - কিভাবে মার্কআপ এবং স্টাইলস সংযুক্ত করবেন | ||||||
| - কিভাবে ডেটা প্রদর্শন করবেন | ||||||
| - কিভাবে কন্ডিশনস এবং লিস্টস গুলো রেন্ডার করবেন | ||||||
| - কিভাবে ইভেন্ট গুলো রেস্পন্ড করবেন এবং সেই অনুযায়ী স্ক্রিন আপডেট করবেন | ||||||
| - কিভাবে কম্পোনেন্টস এর মধ্যে ডেটা শেয়ার করবেন | ||||||
|
|
||||||
| </YouWillLearn> | ||||||
|
|
||||||
| ## Creating and nesting components {/*components*/} | ||||||
| ## কম্পোনেন্টস তৈরী এন্ড নেস্টিং {/*components*/} | ||||||
|
|
||||||
| React apps are made out of *components*. A component is a piece of the UI (user interface) that has its own logic and appearance. A component can be as small as a button, or as large as an entire page. | ||||||
| React অ্যাপগুলি *কম্পোনেন্টস* দিয়ে তৈরি। একটি কম্পোনেন্ট হল ইউএই (ইউজার ইন্টারফেস) এর একটি অংশ যার নিজস্ব লজিক এবং এপিয়ারেন্স রয়েছে। একটি কম্পোনেন্ট একটি বাটনের মতো ছোট বা একটি সম্পূর্ণ পেজ এর মতো বড় হতে পারে। | ||||||
|
Collaborator
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
|
||||||
|
|
||||||
| React components are JavaScript functions that return markup: | ||||||
| React কম্পোনেন্ট গুলি হল জাভাস্ক্রিপ্ট ফাংশন যা মার্কআপ রিটার্ন করে: | ||||||
|
|
||||||
| ```js | ||||||
| function MyButton() { | ||||||
|
|
@@ -33,7 +33,8 @@ function MyButton() { | |||||
| } | ||||||
| ``` | ||||||
|
|
||||||
| Now that you've declared `MyButton`, you can nest it into another component: | ||||||
| এখন আপনি `MyButton` ডিক্লেয়ার করেছেন, এটিকে অন্য কম্পোনেন্টে নেস্ট করতে পারেন: | ||||||
|
|
||||||
|
Collaborator
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
|
||||||
|
|
||||||
| ```js {5} | ||||||
| export default function MyApp() { | ||||||
|
|
@@ -46,9 +47,9 @@ export default function MyApp() { | |||||
| } | ||||||
| ``` | ||||||
|
|
||||||
| Notice that `<MyButton />` starts with a capital letter. That's how you know it's a React component. React component names must always start with a capital letter, while HTML tags must be lowercase. | ||||||
| লক্ষ্য করুন যে `<MyButton />` একটি বড় অক্ষর দিয়ে শুরু হয়েছে। এইভাবে আপনি বলতে পারেন যে এটি একটি react কম্পোনেন্ট। সর্বদা, React কম্পোনেন্টের নামগুলি একটি বড় অক্ষর, আর HTML ট্যাগগুলি ছোট হাতের অক্ষর দিয়ে শুরু হওয়া উচিত। | ||||||
|
|
||||||
| Have a look at the result: | ||||||
| ফলাফল দেখুন: | ||||||
|
|
||||||
| <Sandpack> | ||||||
|
|
||||||
|
|
@@ -73,13 +74,13 @@ export default function MyApp() { | |||||
|
|
||||||
| </Sandpack> | ||||||
|
|
||||||
| The `export default` keywords specify the main component in the file. If you're not familiar with some piece of JavaScript syntax, [MDN](https://developer.mozilla.org/en-US/docs/web/javascript/reference/statements/export) and [javascript.info](https://javascript.info/import-export) have great references. | ||||||
| এই `export default` কীওয়ার্ডস নির্দিষ্ট করে দেয় যে কোনটি ফাইলের প্রধান কম্পোনেন্ট। আপনি যদি জাভাস্ক্রিপ্ট সিনট্যাক্সের কিছু অংশের সাথে পরিচিত না হন, [MDN](https://developer.mozilla.org/en-US/docs/web/javascript/reference/statements/export) এবং [javascript.info](https://javascript.info/import-export) এর মধ্যে চমৎকার রেফারেন্স আছে পরিচিত হবার। | ||||||
|
|
||||||
| ## Writing markup with JSX {/*writing-markup-with-jsx*/} | ||||||
| ## JSX দিয়ে মার্কআপ লেখা {/*writing-markup-with-jsx*/} | ||||||
|
|
||||||
| The markup syntax you've seen above is called *JSX*. It is optional, but most React projects use JSX for its convenience. All of the [tools we recommend for local development](/learn/installation) support JSX out of the box. | ||||||
| আপনি উপরে যে মার্কআপ সিনট্যাক্সটি দেখেছেন তাকে বলা হয় *JSX*। এটি ঐচ্ছিক, তবে বেশিরভাগ React প্রজেক্ট গুলিতে সুবিধার জন্য JSX ব্যবহার করা হয়। [লোকাল ডেভেলপমেন্টের জন্য আমরা যে সমস্ত টুলের পরামর্শ দিই](/learn/installation) সেগুলির সবকটিই JSX সমর্থন করে। | ||||||
|
|
||||||
| JSX is stricter than HTML. You have to close tags like `<br />`. Your component also can't return multiple JSX tags. You have to wrap them into a shared parent, like a `<div>...</div>` or an empty `<>...</>` wrapper: | ||||||
| JSX HTML এর চেয়ে বেশি স্ট্রিক্ট। আপনাকে `<br />` এর মত ট্যাগ বন্ধ করতে হবে। আপনার কম্পোনেন্ট একাধিক JSX ট্যাগ রিটার্ন করতে পারবে না। সেগুলিকে একটি parent div এর মধ্যে মোড়াতে হবে, যেমন একটি `<div>...</div>` বা একটি খালি `<>...</>` মোড়ক: | ||||||
|
Collaborator
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
|
||||||
|
|
||||||
| ```js {3,6} | ||||||
| function AboutPage() { | ||||||
|
|
@@ -92,7 +93,7 @@ function AboutPage() { | |||||
| } | ||||||
| ``` | ||||||
|
|
||||||
| If you have a lot of HTML to port to JSX, you can use an [online converter.](https://transform.tools/html-to-jsx) | ||||||
| JSX এ পোর্ট করার জন্য আপনার যদি অনেকগুলো HTML থাকে, আপনি একটি [অনলাইন কনভার্টার](https://transform.tools/html-to-jsx) ব্যবহার করতে পারেন। | ||||||
|
|
||||||
| ## Adding styles {/*adding-styles*/} | ||||||
|
|
||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.