Skip to content
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
841835c
Partial Translation of Component concepts page
moinulse May 19, 2023
789d156
Minor Translations
moinulse May 23, 2023
6b61cd4
Annex to #6138 (#6226)
AhmedBaset Aug 15, 2023
fcdf481
createcontext-40%
nafistiham Aug 16, 2023
842c24c
Fix broken link for Typescript Discord invite (#6224)
ThomasCharuel Aug 17, 2023
dcca4e9
fixing merge conflict after sync @ 819518cf
nafistiham Aug 20, 2023
9bec690
lint-update
nafistiham Aug 20, 2023
97027a9
linting-fixed-for-challenge
nafistiham Aug 20, 2023
62f18ea
Merge pull request #85 from nafistiham/merge-conflict-fix-after-@-819…
nafistiham Aug 20, 2023
42dc532
merging all conflicts
react-translations-bot Aug 21, 2023
effa120
Update ResetButton.tsx
moshfiqrony Aug 21, 2023
c2573c7
Merge pull request #86 from reactjs/sync-842c24c9
moshfiqrony Aug 21, 2023
f67811b
Clarify these features are not related to Next (#6229)
lunaleaps Aug 21, 2023
3189529
Add React Native EU 2023 to the conferences page (#6254)
elicwhite Aug 23, 2023
d3a4713
Merge branch 'main' of https://github.com/reactjs/react.dev into sync…
react-translations-bot Aug 28, 2023
5a370a0
Merge pull request #87 from reactjs/sync-31895292
moshfiqrony Aug 29, 2023
722b546
fix(docs): remove inactive indian meetup groups (#6267)
CarreraPHP Aug 30, 2023
c65f389
Merge branch 'main' of https://github.com/reactjs/react.dev into sync…
react-translations-bot Sep 4, 2023
9b4c56a
update conferences to move React Rally 23 to previous and add upcomin…
M0nica Sep 5, 2023
be6c39d
Update tutorial-tic-tac-toe.md (#6259)
0xSaksham Sep 5, 2023
05380da
Update conferences.md (#6256)
ThugDebugger Sep 5, 2023
cd09ffb
Update Twitter(X) icon for light and dark mode (#6235)
venom-10 Sep 5, 2023
230c39b
Fix link in new typescript docs (#6232)
maxjacobson Sep 5, 2023
14629a7
Fix incorrect link in select.md (#6227)
NGHdeveloper Sep 5, 2023
df9d907
Fix flushSync.md grammar (#6282)
minuminukim Sep 6, 2023
7141306
Add cache API docs (#6240)
lunaleaps Sep 6, 2023
9e144cd
Fix typo in preserving-and-resetting-state.md (#6194)
Aleksandar15 Sep 6, 2023
ee98f75
add rendercon kenya 2023 to conferences (#6133)
orama254 Sep 6, 2023
20ccdf9
Update lazy.md to mention default exports (#6285)
sophiebits Sep 7, 2023
46e7b2c
Fixes error in cloneElement code example (#6291)
drex04 Sep 8, 2023
742d2bf
Add use hook API reference page (#6177)
mattcarrollcode Sep 8, 2023
5219d73
Removed the multiple checks (#5759)
abhinav-m22 Sep 9, 2023
ade04e8
Merge pull request #88 from reactjs/sync-722b5464
moshfiqrony Sep 10, 2023
1a74b13
merging all conflicts
react-translations-bot Sep 11, 2023
43ada1f
Sandpack 2.0: upgrade playgrounds (#5917)
danilowoz Sep 12, 2023
0d21915
Replace label with placeholder (#6295)
kahenya-anita Sep 13, 2023
bdc60c2
FIx typo: props => context (#6300)
smikitky Sep 14, 2023
c65e03f
merging all conflicts
react-translations-bot Sep 18, 2023
cbeb0ba
Add French to fully-translated languages (#6305)
tdd Sep 19, 2023
dfd15e8
Remove "robot=noindex" meta tag (#6260)
smikitky Sep 20, 2023
089a800
learn>passing-data-deeply-with-props [intro done]
habibium Sep 20, 2023
4df987e
createcontext-done-60%
nafistiham Sep 21, 2023
12d0ebc
index fixed for merge conflict
nafistiham Sep 21, 2023
eb6e996
flushsync fixed for merge conflict
nafistiham Sep 21, 2023
5f3565f
Fix like button color
gaearon Sep 21, 2023
060b400
translate YouWillLearn of Passing Data Deeply...
habibium Sep 22, 2023
b72859f
finish 5%
habibium Sep 22, 2023
bad7e90
Update team page (#6310)
josephsavona Sep 22, 2023
2ab8334
Update common.md (#6290)
s0h311 Sep 23, 2023
828e30a
chore: log heading missing url error on dev only (#6280)
GSTJ Sep 23, 2023
a1fbcf8
Update useEffect.md - The explanation on the timing of useEffect() ca…
JSerZANP Sep 23, 2023
1758515
Fix text in docs (#6253)
smdmori Sep 23, 2023
2390627
fix links (#6286)
awxiaoxian2020 Sep 23, 2023
77178bf
finish 9%
habibium Sep 23, 2023
e4d2b92
feat: translate intro of scaling up with reducer and context page
Shahriar-Rumel Sep 24, 2023
663eddd
merge conflict resolved in lazy
nafistiham Sep 24, 2023
3b57c6f
Merge pull request #89 from reactjs/sync-5219d736
nafistiham Sep 24, 2023
9097a59
Merge branch 'main' of https://github.com/reactjs/react.dev into sync…
react-translations-bot Sep 25, 2023
51a4110
Merge pull request #94 from reactjs/sync-2390627c
nafistiham Sep 25, 2023
01b38fb
lazy fixed for merge conflict
nafistiham Sep 25, 2023
33872b5
flushsync fixed for merge conflict
nafistiham Sep 25, 2023
61762a5
lazy fixed for merge conflict
nafistiham Sep 25, 2023
6af548f
Merge branch 'main' into sync-bdc60c26
nafistiham Sep 25, 2023
ead4115
Merge pull request #90 from reactjs/sync-bdc60c26
nafistiham Sep 25, 2023
fa29437
feat: translate what you will learn and combine reducer with context …
Shahriar-Rumel Sep 25, 2023
a92e8e4
feat: translate middle section paragraph of combining reducer with co…
Shahriar-Rumel Sep 25, 2023
91e7f69
Update tutorial error message to use ConsoleBlock
AhmedBaset Sep 25, 2023
4df3e7c
Remove pitfall and update Next link (#6318)
lunaleaps Sep 26, 2023
62b9b45
Main (#5963)
JustLolo Sep 26, 2023
2dbd195
Fix an incorrect person's name (#6066)
jajimajp Sep 26, 2023
01c3163
fix: wrong parameter name defined in explanation (#6158)
MatanBobi Sep 26, 2023
3fccb03
finish 20%
habibium Sep 26, 2023
8afb1ef
Add info about App.js 2024 conference (#6192)
piaskowyk Sep 26, 2023
cffb161
translate step 1: create a context
habibium Sep 27, 2023
76fa5ee
translate step 2: use a context
habibium Sep 27, 2023
850327d
Update "Start a new React project" for stable Next.js App Router (#6020)
leerob Sep 28, 2023
d4c214a
Update Page not found to React18 URL (#6320)
SouSingh Sep 28, 2023
e08195b
feat: translate upto step 2 of combining context with reducer.
Shahriar-Rumel Oct 1, 2023
1dfc88f
fix: typo in useMemo example (#6330)
alainkaiser Oct 1, 2023
68f417a
Explain how `null` ends up in `ref.current` for React-managed refs (#…
eps1lon Oct 1, 2023
7f018b2
merging all conflicts
react-translations-bot Oct 2, 2023
ba8d9a2
referencing values with ref fixed for merge
nafistiham Oct 3, 2023
fb9c947
fixed start a new react project for merge conflict
nafistiham Oct 3, 2023
c0fa95f
profiler fixed for merge conflict
nafistiham Oct 3, 2023
4d3df3c
start a new react project fixed for merge
nafistiham Oct 3, 2023
b245547
link fixed
nafistiham Oct 3, 2023
6446ba5
Merge pull request #95 from reactjs/sync-68f417a6
nafistiham Oct 3, 2023
d1e790f
finish 53%
habibium Oct 4, 2023
1002f50
finish 67%
habibium Oct 4, 2023
c45fa10
Fix "primatives" typo in cache.md (#6335)
psikoi Oct 5, 2023
c928071
feat: translate step 2 of scaling up with reducer and context page
Shahriar-Rumel Oct 6, 2023
3cd1723
Mention `use` as a Suspense-enabled data source (#6340)
sophiebits Oct 6, 2023
9aa84b1
Add Experimental Taint API Docs (#6337)
sebmarkbage Oct 6, 2023
4a02979
finish 76%
habibium Oct 7, 2023
885d13e
merging all conflicts
react-translations-bot Oct 9, 2023
acda191
finish 80%
habibium Oct 9, 2023
fdad54d
Explain limitations of useSyncExternalStore with concurrency (#6339)
sophiebits Oct 9, 2023
88af66d
Fix comma splice
sophiebits Oct 9, 2023
f2c45ea
Add labs icon to experimental APIs (#6346)
sophiebits Oct 9, 2023
4e51f0c
finish 84%
habibium Oct 10, 2023
43f4702
Fix typo in typescript.md (#6347)
mattcarrollcode Oct 11, 2023
900a669
Upgrade react-collapsed (#5893)
roginfarrer Oct 11, 2023
c2fdf12
new updates Suspense.md
nafistiham Oct 12, 2023
9cb1836
Merge pull request #96 from reactjs/sync-9aa84b19
nafistiham Oct 12, 2023
1075f57
create context done
nafistiham Oct 12, 2023
e85b71d
Add 'ja' to deployedTranslations (#6351)
smikitky Oct 13, 2023
b416a8a
feat: translate step 3 of the scaling up with reducer and context page
Shahriar-Rumel Oct 14, 2023
0144710
create-context-fix
nafistiham Oct 15, 2023
3988cf5
Merge branch 'main' of https://github.com/reactjs/react.dev into sync…
react-translations-bot Oct 16, 2023
e86bbcf
Merge pull request #98 from reactjs/sync-e85b71de
moshfiqrony Oct 16, 2023
31b7881
Add GA4 tag to react.dev (#6350)
kmiddleton14 Oct 16, 2023
a10a622
Merge pull request #97 from nafistiham/create-context
nomandhoni-cs Oct 17, 2023
d22efb3
Added new meetup in Saskatoon - SK (#6341)
galexandrade Oct 17, 2023
90ca701
Add `useFormStatus` Hook API reference documentation (#6314)
mattcarrollcode Oct 17, 2023
5750680
docs: Remove unnecessary `when` (#6344)
locol23 Oct 18, 2023
b68e15a
fix typo in react-dom/hooks (#6355)
dragonsuperf Oct 18, 2023
10574e5
fix: add a missing import statement in useFormStatus.md (#6356)
koba04 Oct 18, 2023
9af01e2
Describing Your UI > Your UI as a tree (#6334)
lunaleaps Oct 19, 2023
5c5a25a
feat: translate the remaining part of scaling up with reducer and con…
Shahriar-Rumel Oct 20, 2023
096b50c
feat: update src/content/learn/scaling-up-with-reducer-and-context.md
Shahriar-Rumel Oct 20, 2023
16f90a9
Minor fixes to Understand Your UI as a Tree learn doc (#6365)
mattcarrollcode Oct 20, 2023
a95c310
fix: remove extra spaces
Shahriar-Rumel Oct 21, 2023
dee221e
fix: remove extra line
Shahriar-Rumel Oct 21, 2023
5160741
fix: remove extra space line and fix typo
Shahriar-Rumel Oct 21, 2023
ec59e13
fix: remove extra lines and change wording
Shahriar-Rumel Oct 21, 2023
64316c5
fix: remove extra line on 913
Shahriar-Rumel Oct 21, 2023
e6b15e8
Merge pull request #93 from Shahriar-Rumel/scaling-up-with-reducer-an…
nafistiham Oct 21, 2023
a0cacd7
Fix onScroll → onWheel typo in common-props (#6364)
insanj Oct 22, 2023
bc62201
merging all conflicts
react-translations-bot Oct 23, 2023
1d510ab
Update describing-the-ui.md for merge conflict in change from main
nafistiham Oct 23, 2023
1e3e53b
Merge pull request #99 from reactjs/sync-a0cacd7d
nafistiham Oct 23, 2023
54976d3
finish 100%
habibium Oct 24, 2023
717f9b5
Remove unsupported ga-lite and update existing calls to GA4 (#6366)
kmiddleton14 Oct 24, 2023
bbdbaca
Fixes related to "Your UI as a Tree" (#6374)
smikitky Oct 24, 2023
63f9470
Add Error Boundary to useTransition API docs (#6354)
kmiddleton14 Oct 24, 2023
2779615
Warn about low entropy in taintUniqueValue.md (#6379)
sophiebits Oct 24, 2023
5e40d13
Add useFormState reference (#6338)
davidmccabe Oct 25, 2023
6ef844b
useFormState reference fixes (#6383)
davidmccabe Oct 25, 2023
df3ec65
Fix typo in experimental_taintObjectReference (#6385)
elicwhite Oct 26, 2023
33f0f90
Resolved changes
moinulse Oct 26, 2023
97e61d7
Fix broken links caused by #6164 (#6375)
smikitky Oct 26, 2023
a272f0c
chore: fix typos (#6387)
harish-sethuraman Oct 26, 2023
76c1bde
Using strict equality in the JS example for City Quiz (#6373)
jerrykodes Oct 26, 2023
6a94b72
docs: update link to React Query (#6369)
TkDodo Oct 26, 2023
78e2819
Update src/content/learn/passing-data-deeply-with-context.md: নিম্নস্…
habibium Oct 26, 2023
1b6038c
Update src/content/learn/passing-data-deeply-with-context.md কম্পনেন্…
habibium Oct 26, 2023
58f6d19
Update src/content/learn/passing-data-deeply-with-context.md তালাশ কর…
habibium Oct 26, 2023
927b732
Update src/content/learn/passing-data-deeply-with-context.md -> রিয়ে…
habibium Oct 26, 2023
4c8e1d5
Update src/content/learn/passing-data-deeply-with-context.md করে -> ক…
habibium Oct 26, 2023
5db7ffc
Update src/content/learn/passing-data-deeply-with-context.md এক্সাম্প…
habibium Oct 26, 2023
95bc330
replace রিয়েক্ট with React/react
habibium Oct 26, 2023
f6b7f9e
Removed canary: true from useTransition.md (#6389)
kevinfarrugia Oct 26, 2023
4b333ca
Add <form> Component reference documentation (#6312)
mattcarrollcode Oct 26, 2023
5d2113b
typos (#6390)
harish-sethuraman Oct 27, 2023
46b45fb
Add `useOptimistic Hook` API reference documentation (#6377)
kmiddleton14 Oct 27, 2023
b8acf01
Remove meta description from most pages (#6392)
sophiebits Oct 27, 2023
4bdb87b
Try to fix Google titles for directive pages (#6393)
sophiebits Oct 28, 2023
28750c8
Merge pull request #92 from HabibMollah/passing-data-deeply-with-context
nafistiham Oct 29, 2023
8b591e8
merging all conflicts
react-translations-bot Oct 30, 2023
81f1520
Adds Reference Overview Page (#6378)
brianjo Oct 30, 2023
49c2d78
'use server' fleshing out (#6384)
lunaleaps Oct 30, 2023
9c60167
'use client' - flesh out usages and reference (#6362)
lunaleaps Oct 30, 2023
f949428
Add closing </p> tag (#6394)
mixlaab Oct 31, 2023
40a88fa
Fix typoError Mentioned in issue (#6400)
DhanushShettyH Nov 3, 2023
a8790ca
Edits for new "use client" content (#6401)
sophiebits Nov 3, 2023
fd4c83c
Update describing-the-ui.md
nafistiham Nov 5, 2023
91ee111
Merge pull request #102 from reactjs/sync-4bdb87b1
nafistiham Nov 5, 2023
53b3e62
merging all conflicts
react-translations-bot Nov 6, 2023
5f981b5
Update index.md for conflict resolution
nafistiham Nov 6, 2023
1b6f68f
Update index.md for conflict resolution
nafistiham Nov 6, 2023
f5989df
Update index.md for conflict resoultion
nafistiham Nov 7, 2023
abb109c
Merge pull request #104 from reactjs/sync-a8790ca8
nafistiham Nov 7, 2023
0a74943
Merge pull request #38 from moinul192000/state-a-component-memory
nafistiham Nov 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1 +1 @@
NEXT_PUBLIC_GA_TRACKING_ID = 'UA-41298772-4'
NEXT_PUBLIC_GA_TRACKING_ID = 'G-B1E83PJ3RT'
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"classnames": "^2.2.6",
"date-fns": "^2.16.1",
"debounce": "^1.2.1",
"ga-lite": "^2.1.4",
"github-slugger": "^1.3.0",
"next": "^13.4.1",
"next-remote-watch": "^1.0.0",
Expand Down
15 changes: 6 additions & 9 deletions src/components/Layout/Feedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import {useState} from 'react';
import {useRouter} from 'next/router';
import {ga} from '../../utils/analytics';

export function Feedback({onSubmit = () => {}}: {onSubmit?: () => void}) {
const {asPath} = useRouter();
Expand Down Expand Up @@ -48,14 +47,12 @@ const thumbsDownIcon = (
function sendGAEvent(isPositive: boolean) {
// Fragile. Don't change unless you've tested the network payload
// and verified that the right events actually show up in GA.
ga(
'send',
'event',
'button',
'feedback',
window.location.pathname,
isPositive ? '1' : '0'
);
// @ts-ignore
gtag('event', 'feedback', {
event_category: 'button',
event_label: window.location.pathname,
value: isPositive ? 1 : 0,
});
}

function SendFeedback({onSubmit}: {onSubmit: () => void}) {
Expand Down
8 changes: 7 additions & 1 deletion src/components/Layout/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ interface PageProps {
children: React.ReactNode;
toc: Array<TocItem>;
routeTree: RouteItem;
meta: {title?: string; canary?: boolean; description?: string};
meta: {
title?: string;
titleForTitleTag?: string;
canary?: boolean;
description?: string;
};
section: 'learn' | 'reference' | 'community' | 'blog' | 'home' | 'unknown';
}

Expand Down Expand Up @@ -107,6 +112,7 @@ export function Page({children, toc, routeTree, meta, section}: PageProps) {
<>
<Seo
title={title}
titleForTitleTag={meta.titleForTitleTag}
isHomePage={isHomePage}
image={`/images/og-` + section + '.png'}
searchOrder={searchOrder}
Expand Down
6 changes: 6 additions & 0 deletions src/components/MDX/Sandpack/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ export function Preview({
rawError = null;
}

// When throwing a new Error in Sandpack - we want to disable the dev error dialog
// to show the Error Boundary fallback
if (rawError && rawError.message.includes(`throw Error('Example error')`)) {
rawError = null;
}

// Memoized because it's fed to debouncing.
const firstLintError = useMemo(() => {
if (lintErrors.length === 0) {
Expand Down
13 changes: 10 additions & 3 deletions src/components/Seo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {siteConfig} from '../siteConfig';

export interface SeoProps {
title: string;
titleForTitleTag: undefined | string;
description?: string;
image?: string;
// jsonld?: JsonLDType | Array<JsonLDType>;
Expand Down Expand Up @@ -36,7 +37,7 @@ function getDomain(languageCode: string): string {
export const Seo = withRouter(
({
title,
description = 'The library for web and native user interfaces',
titleForTitleTag,
image = '/images/og-default.png',
router,
children,
Expand All @@ -47,14 +48,20 @@ export const Seo = withRouter(
const canonicalUrl = `https://${siteDomain}${
router.asPath.split(/[\?\#]/)[0]
}`;
const pageTitle = isHomePage ? title : title + ' – React';
// Allow setting a different title for Google results
const pageTitle =
(titleForTitleTag ?? title) + (isHomePage ? '' : ' – React');
// Twitter's meta parser is not very good.
const twitterTitle = pageTitle.replace(/[<>]/g, '');
let description = isHomePage
? 'React is the library for web and native user interfaces. Build user interfaces out of individual pieces called components written in JavaScript. React is designed to let you seamlessly combine components written by independent people, teams, and organizations.'
: 'The library for web and native user interfaces';
return (
<Head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
{title != null && <title key="title">{pageTitle}</title>}
{description != null && (
{isHomePage && (
// Let Google figure out a good description for each page.
<meta name="description" key="description" content={description} />
)}
<link rel="canonical" href={canonicalUrl} />
Expand Down
12 changes: 10 additions & 2 deletions src/content/learn/describing-the-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,13 +530,21 @@ React কম্পোনেন্ট এবং মডিউলের ভেত

একটা React রেন্ডার ট্রি হল কম্পোনেন্টের মাঝে থাকা প্যারেন্ট-চাইল্ড সম্পর্কের একটা প্রতিফলন।

<Diagram name="generic_render_tree" height={250} width={500} alt="A tree graph with five nodes, with each node representing a component. The root node is located at the top the tree graph and is labelled 'Root Component'. It has two arrows extending down to two nodes labelled 'Component A' and 'Component C'. Each of the arrows is labelled with 'renders'. 'Component A' has a single 'renders' arrow to a node labelled 'Component B'. 'Component C' has a single 'renders' arrow to a node labelled 'Component D'.">React রেন্ডার ট্রিয়ের একটি উদাহরণ।</Diagram>
<Diagram name="generic_render_tree" height={250} width={500} alt="A tree graph with five nodes, with each node representing a component. The root node is located at the top the tree graph and is labelled 'Root Component'. It has two arrows extending down to two nodes labelled 'Component A' and 'Component C'. Each of the arrows is labelled with 'renders'. 'Component A' has a single 'renders' arrow to a node labelled 'Component B'. 'Component C' has a single 'renders' arrow to a node labelled 'Component D'.">

React রেন্ডার ট্রিয়ের একটি উদাহরণ।

</Diagram>

ট্রি এর শীর্ষের কাছে থাকা কম্পোনেন্ট, যেগুলো রুটেরও কাছে, সেগুলোকে top-level কম্পোনেন্ট হিসেবে ধরা হয়। যেসব কম্পোনেন্টের কোন চাইল্ড নেই সেগুলোকে leaf কম্পোনেন্ট বলে। দেটা ফলো এবং রেন্ডারিং পারফরম্যান্স বুঝবার জন্য কম্পোনেন্টের এই বিভাজন কাজে লাগে।

জাভাস্ক্রিপ্ট মডিউলগুলোর মধ্যকার সম্পর্ক মডেলিং আপনার অ্যাপ বুঝবার জন্য অন্য একটি কার্যকর উপায়। এটাকে আমরা module dependency tree বলে অভিহিত করি।

<Diagram name="generic_dependency_tree" height={250} width={500} alt="A tree graph with five nodes. Each node represents a JavaScript module. The top-most node is labelled 'RootModule.js'. It has three arrows extending to the nodes: 'ModuleA.js', 'ModuleB.js', and 'ModuleC.js'. Each arrow is labelled as 'imports'. 'ModuleC.js' node has a single 'imports' arrow that points to a node labelled 'ModuleD.js'.">Module dependency tree এর একটি উদাহরণ।</Diagram>
<Diagram name="generic_dependency_tree" height={250} width={500} alt="A tree graph with five nodes. Each node represents a JavaScript module. The top-most node is labelled 'RootModule.js'. It has three arrows extending to the nodes: 'ModuleA.js', 'ModuleB.js', and 'ModuleC.js'. Each arrow is labelled as 'imports'. 'ModuleC.js' node has a single 'imports' arrow that points to a node labelled 'ModuleD.js'.">

Module dependency tree এর একটি উদাহরণ।

</Diagram>

একটি ডিপেন্ডেন্সি ট্রি বেশিরভাগ সময় বিল্ড টুল ব্যবহার করে তৈরি করা হয়, যেন দরকারি পুরো জাভাস্ক্রিপ্ট কোড একত্রিত করে ক্লায়েন্ট ডাউনলোড এবং রেন্ডার করতে পারেন। React অ্যাপের ক্ষেত্রে একটা বড় বান্ডল সাইজ user experience এ বিঘ্ন ঘটায়। এরকম সমস্যা ডিবাগ করার জন্য মডিউল ডিপেন্ডেন্সি ট্রি কাজে লাগে।

Expand Down
2 changes: 1 addition & 1 deletion src/content/learn/reacting-to-input-with-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function submitForm(answer) {
// Pretend it's hitting the network.
return new Promise((resolve, reject) => {
setTimeout(() => {
if (answer.toLowerCase() == 'istanbul') {
if (answer.toLowerCase() === 'istanbul') {
resolve();
} else {
reject(new Error('Good guess but a wrong answer. Try again!'));
Expand Down
2 changes: 1 addition & 1 deletion src/content/learn/understanding-your-ui-as-a-tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ With conditional rendering, across different renders, the render tree may render

In this example, depending on what `inspiration.type` is, we may render `<FancyText>` or `<Color>`. The render tree may be different for each render pass.

Although render trees may differ across render pases, these trees are generally helpful for identifying what the top-level and leaf components are in a React app. Top-level components are the components nearest to the root component and affect the rendering performance of all the components beneath them and often contain the most complexity. Leaf components are near the bottom of the tree and have no child components and are often frequently re-rendered.
Although render trees may differ across render passes, these trees are generally helpful for identifying what the *top-level* and *leaf components* are in a React app. Top-level components are the components nearest to the root component and affect the rendering performance of all the components beneath them and often contain the most complexity. Leaf components are near the bottom of the tree and have no child components and are often frequently re-rendered.

Identifying these categories of components are useful for understanding data flow and performance of your app.

Expand Down
Loading