From 7633516f5cc9a306c30fd4e8c430e6bb46dc2eda Mon Sep 17 00:00:00 2001 From: manishankardurai Date: Sat, 18 Nov 2023 13:20:02 +0530 Subject: [PATCH 1/2] Thinking in React Update --- src/content/learn/thinking-in-react.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/content/learn/thinking-in-react.md b/src/content/learn/thinking-in-react.md index 23d4beb3f..e19d09ea1 100644 --- a/src/content/learn/thinking-in-react.md +++ b/src/content/learn/thinking-in-react.md @@ -1,18 +1,18 @@ --- -title: Thinking in React +title: React வழியில் சிந்தனை --- -React can change how you think about the designs you look at and the apps you build. When you build a user interface with React, you will first break it apart into pieces called *components*. Then, you will describe the different visual states for each of your components. Finally, you will connect your components together so that the data flows through them. In this tutorial, we’ll guide you through the thought process of building a searchable product data table with React. +நீங்கள் பார்க்கும் வடிவமைப்புகள் மற்றும் நீங்கள் உருவாக்கும் பயன்பாடுகள் பற்றி நீங்கள் எப்படி நினைக்கிறீர்கள் என்பதை React மாற்றலாம். நீங்கள் React மூலம் ஒரு பயனர் இடைமுகத்தை உருவாக்கும்போது, ​​முதலில் அதை *components* எனப்படும் துண்டுகளாகப் பிரிப்பீர்கள். பின்னர், உங்கள் ஒவ்வொரு கூறுகளுக்கும் வெவ்வேறு காட்சி நிலைகளை விவரிப்பீர்கள். இறுதியாக, உங்கள் *components* ஒன்றாக இணைப்பீர்கள், இதனால் data அவற்றின் வழியாகப் பாய்கிறது. இந்த டுடோரியலில், React மூலம் தேடக்கூடிய தயாரிப்பு தரவு அட்டவணையை உருவாக்குவதற்கான சிந்தனை செயல்முறையின் மூலம் நாங்கள் உங்களுக்கு வழிகாட்டுவோம். ## Start with the mockup {/*start-with-the-mockup*/} -Imagine that you already have a JSON API and a mockup from a designer. +உங்களிடம் ஏற்கனவே JSON API மற்றும் வடிவமைப்பாளரிடமிருந்து ஒரு mock உள்ளது என்று கற்பனை செய்து பாருங்கள். -The JSON API returns some data that looks like this: +JSON API இது போன்ற சில data வழங்குகிறது: ```json [ @@ -25,17 +25,17 @@ The JSON API returns some data that looks like this: ] ``` -The mockup looks like this: +mockup இது போல் தெரிகிறது: -To implement a UI in React, you will usually follow the same five steps. +In React, UI ஐ செயல்படுத்த, நீங்கள் வழக்கமாக அதே ஐந்து படிகளைப் பின்பற்றுவீர்கள். -## Step 1: Break the UI into a component hierarchy {/*step-1-break-the-ui-into-a-component-hierarchy*/} +## Step 1: UI ஐ ஒரு component படிநிலையாக உடைக்கவும் {/*step-1-break-the-ui-into-a-component-hierarchy*/} -Start by drawing boxes around every component and subcomponent in the mockup and naming them. If you work with a designer, they may have already named these components in their design tool. Ask them! +மொக்கப்பில் உள்ள ஒவ்வொரு components மற்றும் subcomponents சுற்றி பெட்டிகளை வரைந்து அவற்றை பெயரிடுவதன் மூலம் தொடங்கவும். நீங்கள் ஒரு வடிவமைப்பாளருடன் பணிபுரிந்தால், அவர்கள் ஏற்கனவே இந்த கூறுகளை தங்கள் வடிவமைப்பு கருவியில் பெயரிட்டிருக்கலாம். அவர்களிடம் கேளுங்கள்! -Depending on your background, you can think about splitting up a design into components in different ways: +உங்கள் பின்னணியைப் பொறுத்து, ஒரு வடிவமைப்பை வெவ்வேறு வழிகளில் components பிரிப்பது பற்றி நீங்கள் சிந்திக்கலாம்: * **Programming**--use the same techniques for deciding if you should create a new function or object. One such technique is the [single responsibility principle](https://en.wikipedia.org/wiki/Single_responsibility_principle), that is, a component should ideally only do one thing. If it ends up growing, it should be decomposed into smaller subcomponents. * **CSS**--consider what you would make class selectors for. (However, components are a bit less granular.) From f906d6e244d5e732d94327ee1041802ba938f4ba Mon Sep 17 00:00:00 2001 From: manishankardurai Date: Mon, 20 Nov 2023 10:25:10 +0530 Subject: [PATCH 2/2] update --- src/content/learn/thinking-in-react.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/thinking-in-react.md b/src/content/learn/thinking-in-react.md index e19d09ea1..42d85781e 100644 --- a/src/content/learn/thinking-in-react.md +++ b/src/content/learn/thinking-in-react.md @@ -37,7 +37,7 @@ In React, UI ஐ செயல்படுத்த, நீங்கள் வழ உங்கள் பின்னணியைப் பொறுத்து, ஒரு வடிவமைப்பை வெவ்வேறு வழிகளில் components பிரிப்பது பற்றி நீங்கள் சிந்திக்கலாம்: -* **Programming**--use the same techniques for deciding if you should create a new function or object. One such technique is the [single responsibility principle](https://en.wikipedia.org/wiki/Single_responsibility_principle), that is, a component should ideally only do one thing. If it ends up growing, it should be decomposed into smaller subcomponents. +* **Programming**--நீங்கள் ஒரு புதிய செயல்பாடு அல்லது பொருளை உருவாக்க வேண்டுமா என்பதை தீர்மானிக்க அதே நுட்பங்களைப் பயன்படுத்தவும். அத்தகைய ஒரு நுட்பம் [single responsibility principle](https://en.wikipedia.org/wiki/Single_responsibility_principle), அதாவது, ஒரு components ஒரு காரியத்தை மட்டுமே செய்ய வேண்டும். அது வளர்ந்து முடிந்தால், அது subcomponents சிதைக்கப்பட வேண்டும். * **CSS**--consider what you would make class selectors for. (However, components are a bit less granular.) * **Design**--consider how you would organize the design's layers.