Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
162 commits
Select commit Hold shift + click to select a range
31f0e37
finished translation scaling-up-with-reducer-and-context
astropsy999 Aug 18, 2024
67e485c
Apply suggestions from code review
astropsy999 Sep 19, 2024
0d9a5f6
Corrected title
astropsy999 Sep 21, 2024
a5f2d7a
Apply suggestions from code review
alinkedd Feb 2, 2025
9a18bcd
docs: add javascript colombo, sri lanka meetup (#7289)
brionmario Feb 10, 2025
7cb25e3
Adding React Helsinki meetup (#7474)
hencca Feb 10, 2025
c76a1f7
Added React Nexus 2025 to the conference list (#7463)
akiran Feb 10, 2025
dfc4448
Reference docs for `captureOwnerStack` (#7427)
eps1lon Feb 13, 2025
7cf1f50
Blog and docs: Sunsetting Create React App (#7495)
rickhanlonii Feb 14, 2025
3ba4f8c
Fix misspelling in cra blog post (#7496)
poteto Feb 14, 2025
294c731
fix(docs): wrong redirect link to /learn/creating-a-react-app on Crea…
otabekshoyimov Feb 16, 2025
c438e9a
fix(docs): wrong vite command (#7615)
elitalpa Feb 16, 2025
4928421
Add Rsbuild as a build tool for React projects (#7608)
chenjiahan Feb 16, 2025
0d9a30f
merging all conflicts
react-translations-bot Feb 17, 2025
1923248
fix(docs): webpack branding states it should be lower case (#7617)
zackarychapple Feb 17, 2025
09f39a0
fix: Dashboard component name in blogpost (#7621)
erasmoh Feb 17, 2025
604407a
Updates from feedback (#7624)
rickhanlonii Feb 17, 2025
c18b275
Resolve merge conflicts
alinkedd Feb 17, 2025
585bf87
Add translations to Installation page
alinkedd Feb 17, 2025
b5dd220
Fix page name
alinkedd Feb 17, 2025
34e13df
Fix setup page (#7607)
jasonqiu212 Feb 18, 2025
1a4183a
fix: typo for issue #7491 (#7493)
TheCaptain1810 Feb 18, 2025
c7099e3
Fix headings and add link (#7626)
rickhanlonii Feb 18, 2025
c726e7d
Fix broken heading link (#7627)
rickhanlonii Feb 18, 2025
aaf392a
Fix more broken links (#7628)
rickhanlonii Feb 18, 2025
32cb13a
updated incorrect logic (#7482)
timmparsons Feb 18, 2025
2cf6668
Update react-19-upgrade-guide.md (#7411)
amirsaeed671 Feb 18, 2025
ff12973
Fix error in second code snippet under Server Functions with Actions …
hyundonmoon Feb 18, 2025
0593d01
Fix typo in render-and-commit.md (#7405)
rammba Feb 18, 2025
126d8c9
Update nextjs link with the latest URL (#7389)
alex-safian Feb 18, 2025
55d1f8f
Update input.md (#7418)
pierluc-codes Feb 18, 2025
f3e9921
clarify alert message behavior in issue #7494 (#7629)
Punith1117 Feb 18, 2025
c03f029
Fix broken header link in CRA blog post(#7632)
yaodingyd Feb 18, 2025
e2121b5
Translate Setup page
alinkedd Feb 19, 2025
383b389
Remove forwardRefs from recap and challenges (#7475)
dixita0607 Feb 19, 2025
6ef277a
Update CRA to Parcel migration guide (#7638)
devongovett Feb 20, 2025
a42121e
fix: correct typo in hydrateRoot.md (#7637)
hjunyoung Feb 20, 2025
8931c96
Translate Creating a React App
alinkedd Feb 20, 2025
5b14fa6
translated first 40 lines of useImperativeHandle
MaksymMohyla Feb 21, 2025
3780980
translated 87 lines in useImperativeHandle
MaksymMohyla Feb 21, 2025
dcaf07e
chore(docs): add mention that React will drop all extraneous props fo…
samcx Feb 22, 2025
1f04c7f
completed translating useImperativeHandle page
MaksymMohyla Feb 22, 2025
fc29603
Fix 'optimistically updating form data' demo bug (#7646)
subliun Feb 22, 2025
33f9228
Translate Building a React Framework page
alinkedd Feb 23, 2025
f2bd32d
Fix production translation
alinkedd Feb 23, 2025
46a10b2
Add bundle, bundler, package fixes
alinkedd Feb 23, 2025
5ba7675
Add performance fixes
alinkedd Feb 23, 2025
22b290b
fixup! Translate Setup page
alinkedd Feb 23, 2025
1a1f16d
Merge pull request #591 from reactjs/sync-49284218
alinkedd Feb 24, 2025
a07fd79
merging all conflicts
react-translations-bot Feb 24, 2025
5d80556
Resolve merge conflicts
alinkedd Feb 24, 2025
c2456ef
Tranlate Build a React App from Scratch page
alinkedd Feb 24, 2025
a7512bf
Translate State Components Memory page
alinkedd Feb 24, 2025
737afd7
Add feature fixes
alinkedd Feb 24, 2025
6a9521f
Merge pull request #593 from reactjs/sync-fc296034
alinkedd Feb 24, 2025
b303365
feat: start translating
Dmytrii248 Feb 16, 2025
2a6ed3e
feat: translate, part 2
Dmytrii248 Feb 16, 2025
bcaccbe
fixed issues
MaksymMohyla Feb 25, 2025
09a3d46
feat: translate, part 3
Dmytrii248 Feb 23, 2025
331490c
feat: translate, part 4
Dmytrii248 Feb 24, 2025
07592c4
feat: complete translate
Dmytrii248 Feb 25, 2025
6a7bd94
fix: misspellings
Dmytrii248 Feb 25, 2025
250791d
Apply suggestions from code review
MaksymMohyla Feb 26, 2025
5229945
Apply suggestions from code review
alinkedd Feb 26, 2025
6b4aa4e
Update src/content/reference/react/useImperativeHandle.md
alinkedd Feb 26, 2025
72cc366
Merge pull request #592 from MaksymMohyla/maksym-mohyla-translation
alinkedd Feb 26, 2025
4a4e579
docs(hydrateRoot): update suppressHydrationWarning behavior (#7651)
samcx Feb 26, 2025
cc774fa
removing Provider as in React 19 Context can be used as a provider (#…
karthik-awebon Feb 27, 2025
5f09d9f
Invalid bluesky dev account link (#7653)
JosefHartsough Feb 27, 2025
6326e7b
[ci] Run notify workflow on open or ready for review (#7660)
poteto Feb 28, 2025
e560485
Merge branch 'main' of https://github.com/reactjs/react.dev into sync…
react-translations-bot Mar 3, 2025
4f79762
Translated adding-interactivity.md
MinichMykyta May 14, 2024
dbc2f90
Fix examples
alinkedd Mar 3, 2025
fca3217
Merge pull request #595 from reactjs/sync-6326e7b1
alinkedd Mar 3, 2025
ab18d2f
docs: update creating-a-react-app.md (broken link anchor) (#7671)
lauthieb Mar 6, 2025
521f8b2
fix: apply suggestions from code review
Dmytrii248 Mar 9, 2025
0dd2408
merging all conflicts
react-translations-bot Mar 10, 2025
d5bffce
Resolve merge conflicts
alinkedd Mar 10, 2025
e78e30f
Add translations to components
alinkedd Mar 11, 2025
92a4e0d
Translate sections, links and a few headings
alinkedd Mar 11, 2025
d25f622
Merge pull request #596 from reactjs/sync-ab18d2f0
alinkedd Mar 11, 2025
1a7115b
fix: match rows between original and translate versions
Dmytrii248 Mar 14, 2025
982b16d
[ci] Fix permissions and don't use pull_request_target (#7689)
poteto Mar 21, 2025
f6d762c
[ci] Pin 3rd party actions to specific hash (#7690)
poteto Mar 21, 2025
7455225
Merge branch 'main' of https://github.com/reactjs/react.dev into sync…
react-translations-bot Mar 24, 2025
0bc6300
[ci] fix notify for forks (#7694)
rickhanlonii Mar 24, 2025
9b2ad17
[ci] Remove unused param (#7695)
poteto Mar 24, 2025
6788f6b
Fixes typo (#7688)
betovelandia Mar 24, 2025
2859efa
Add React Prague community (#7279)
pchalupa Mar 25, 2025
b557332
Translate Translations page
alinkedd Mar 27, 2025
6d3c5cd
Merge pull request #597 from reactjs/sync-f6d762cb
alinkedd Mar 27, 2025
43329e0
fix(terminology): заміна "компоненту" на "компонента" в родовому відм…
pavlosambur Mar 27, 2025
d48d27b
fix: правки після ревʼю
pavlosambur Mar 28, 2025
e89fc38
Merge pull request #599 from pavlosambur/fix-genitive-componenta
alinkedd Mar 28, 2025
0f90054
Merge branch 'main' of https://github.com/reactjs/react.dev into sync…
react-translations-bot Mar 31, 2025
9f87530
Remove captureOwnerStack canary banner (#7701)
jackpope Mar 31, 2025
38ee8d2
Add note about StrictMode not as the root component (#7702)
rickhanlonii Mar 31, 2025
c0e1774
[errors] special case for 418 (#7705)
rickhanlonii Apr 1, 2025
b5f5134
update reactrouter url (#7703)
zongben Apr 1, 2025
06500ec
Typo correction (#7657)
SandwichGouda Apr 2, 2025
6a548a8
Use stable React by default in Sandpacks (#7709)
eps1lon Apr 2, 2025
b77c05d
Misc `captureOwnerStack` cleanup after stable release (#7710)
eps1lon Apr 2, 2025
b5c16dc
fix(reference): declare `subscribe` before passing it to the hook (#7…
hugmouse Apr 2, 2025
3dfa3bd
Fix heading links in StrictMode (#7713)
rickhanlonii Apr 2, 2025
9fc1221
Update meetups.md (#7700)
darshanyeah Apr 2, 2025
c74271e
Add React Denver to the Meetups page (#4727)
willklein Apr 2, 2025
0ea503b
typo (#7685)
pdurbin Apr 2, 2025
5138e60
Fix small grammatical mistake on Reusing Logic with Custom Hooks page…
LuckyT89 Apr 2, 2025
82b1700
Translate home page
alinkedd Apr 4, 2025
9d396c2
Merge pull request #602 from reactjs/sync-2859efa0
alinkedd Apr 4, 2025
14a82da
merging all conflicts
react-translations-bot Apr 7, 2025
6ead1fa
Add note about `useId` being allowed in non-async Server Components (…
hernan-yadiel Apr 7, 2025
f80ea3a
Resolve merge conflicts
alinkedd Apr 7, 2025
cf4251a
Fix page name
alinkedd Apr 7, 2025
9d9ae3c
Notify of PRs the UTLC community
alinkedd Apr 8, 2025
e148ffe
Add note about root.render microtask scheduling (#7717)
jukben Apr 8, 2025
2b33a23
Fix warning of missing analysis comment artifact
alinkedd Feb 20, 2024
bb1be88
Fix comment action failing on default branch
alinkedd Feb 20, 2024
97ef3a5
Merge pull request #605 from reactjs/sync-5138e605
alinkedd Apr 8, 2025
4cadfd8
с
pavlosambur Mar 26, 2025
a32ea8a
Update hooks.md
pavlosambur Apr 6, 2025
acbc070
Merge pull request #598 from pavlosambur/pavlosambur
alinkedd Apr 8, 2025
420c2f6
Add React Conf banner (#7729)
mattcarrollcode Apr 8, 2025
5598696
Add React Conf to conferences.md and move past conferences (#7730)
mattcarrollcode Apr 9, 2025
84944f2
Merge branch 'main' of https://github.com/reactjs/react.dev into sync…
react-translations-bot Apr 14, 2025
afb5c4f
Apply suggestions from code review
astropsy999 Apr 14, 2025
3e6fec5
Translate Banner
alinkedd Apr 14, 2025
8dc3df6
Enhance utlc discord notification
alinkedd Apr 14, 2025
ea86b7b
Trying to fix analyze comment workflow
alinkedd Apr 14, 2025
cc797e6
Merge pull request #607 from reactjs/sync-55986965
alinkedd Apr 14, 2025
2e009f5
Merge pull request #561 from astropsy999/scaling-up-with-reducer-and-…
alinkedd Apr 14, 2025
3c805e7
fix(reference): missing parameter in hydrateRoot (#7724)
Kafuu-Chinocya Apr 15, 2025
84261aa
Update versions to mention the latest version: 19.1 (#7739)
val1984 Apr 15, 2025
947681e
docs: fix a typo in the docs (#7736)
Clatron Apr 15, 2025
4bea66b
Change the word 'Function' to 'Component' (#7741)
kapantzak Apr 16, 2025
4c54ac9
Fix missing Sunsetting CRA entry in sidebar (#7755)
poteto Apr 21, 2025
3a88efd
Compiler blog post (#7756)
poteto Apr 21, 2025
c1e5681
Compiler blog post edits (#7758)
poteto Apr 21, 2025
663df77
React compiler doc updates (#7759)
poteto Apr 21, 2025
740016e
More compiler blog post tweaks (#7760)
poteto Apr 21, 2025
39b9c56
Fix ESLint plugin version. (#7768)
cpojer Apr 23, 2025
5890bd6
Update react-compiler-rc.md (#7769)
poteto Apr 23, 2025
dd129e4
fix a typo in name in the blog post (#7762)
witch-factory Apr 23, 2025
55ddaa4
Add React Summit US 2025 and React Advanced London 2025 to conference…
Hlebread Apr 23, 2025
358d2be
[blog + docs] React Labs: View Transitions, Activity, and more (#7772)
rickhanlonii Apr 23, 2025
09c9593
Update Next.js deployment notes (#7771)
eduardoboucas Apr 23, 2025
159df67
Add React Norway 2025 conference to community page (#7766)
danisal Apr 24, 2025
f94ab10
Fix typos in blog post
sophiebits Apr 24, 2025
594ff45
Refine wording for Next.js + Compiler + SWC (#7779)
eps1lon Apr 25, 2025
d05547b
fix: server-components link in few pages (#7780)
ad1992 Apr 26, 2025
ecf7596
docs: rename unstableViewTransition to unstable_ViewTransition (#7778)
Apr 27, 2025
92dfd8c
fixed typo (#7785)
MrD9877 Apr 28, 2025
022e047
Remove extra copy of labs post (#7787)
jackpope Apr 28, 2025
4314b49
Improve grammar in component descriptions (#7788)
Maddily Apr 29, 2025
d6c4c0f
Fix useOptimistic example (#7792)
rickhanlonii Apr 29, 2025
a3e9466
fix action pattern in useTransition / useOptimistic (#7796)
rickhanlonii Apr 30, 2025
7b2c344
Apply suggestions from code review
Dmytrii248 May 4, 2025
3cc6d64
Merge pull request #594 from Dmytrii248/translate-sharing-state-betwe…
alinkedd May 4, 2025
b205855
merging all conflicts
react-translations-bot May 14, 2025
ea530e9
Resolve merge conflicts
alinkedd May 17, 2025
15933f6
Add translations to 404 page
alinkedd May 17, 2025
de12f13
Merge pull request #609 from reactjs/sync-a3e9466d
alinkedd May 17, 2025
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
7 changes: 5 additions & 2 deletions .github/workflows/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- main # change this if your default branch is named differently
workflow_dispatch:

permissions: {}

jobs:
analyze:
runs-on: ubuntu-latest
Expand All @@ -23,7 +25,7 @@ jobs:
- name: Restore cached node_modules
uses: actions/cache@v4
with:
path: "**/node_modules"
path: '**/node_modules'
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Install deps
Expand Down Expand Up @@ -55,7 +57,7 @@ jobs:
name: bundle_analysis.json

- name: Download base branch bundle stats
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
if: success() && github.event.number
with:
workflow: analyze.yml
Expand All @@ -82,6 +84,7 @@ jobs:

- name: Upload analysis comment
uses: actions/upload-artifact@v4
if: success() && github.event.number
with:
name: analysis_comment.txt
path: .next/analyze/__bundle_analysis_comment.txt
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/analyze_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,30 @@ name: Analyze Bundle (Comment)

on:
workflow_run:
workflows: ["Analyze Bundle"]
workflows: ['Analyze Bundle']
types:
- completed

permissions:
pull-requests: write

jobs:
comment:
runs-on: ubuntu-latest
if: >
${{ github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success' }}
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
steps:
- name: Download base branch bundle stats
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
with:
workflow: analyze.yml
run_id: ${{ github.event.workflow_run.id }}
name: analysis_comment.txt
path: analysis_comment.txt

- name: Download PR number
uses: dawidd6/action-download-artifact@v2
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e
with:
workflow: analyze.yml
run_id: ${{ github.event.workflow_run.id }}
Expand All @@ -48,7 +51,7 @@ jobs:
echo "pr-number=$pr_number" >> $GITHUB_OUTPUT

- name: Comment
uses: marocchino/sticky-pull-request-comment@v2
uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728
with:
header: next-bundle-analysis
number: ${{ steps.get-comment-body.outputs.pr-number }}
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/discord_notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@ name: Discord Notify

on:
pull_request_target:
types: [labeled]
types: [opened, ready_for_review]

permissions: {}

jobs:
check_maintainer:
uses: facebook/react/.github/workflows/shared_check_maintainer.yml@main
permissions:
# Used by check_maintainer
contents: read
with:
actor: ${{ github.event.pull_request.user.login }}
is_remote: true

notify:
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/discord_notify_utlc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Discord notify for a Ukrainian community--UTLC (#react-docs-alert channel)
name: Discord Notify

on:
pull_request_target:
types: [closed, opened, reopened, ready_for_review]

permissions: {}

jobs:
notify:
if: github.repository == 'reactjs/uk.react.dev'
runs-on: ubuntu-latest
steps:
- name: Discord Webhook Action (UTLC)
uses: tsickert/discord-webhook@v6.0.0
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL_UTLC }}
embed-author-name: ${{ github.event.sender.login }}
embed-author-url: ${{ github.event.sender.html_url }}
embed-author-icon-url: ${{ github.event.sender.avatar_url }}
embed-title: "${{ github.event.action == 'closed' && github.event.pull_request.merged == true && 'merged' || github.event.action }} #${{ github.event.number }}: ${{ github.event.pull_request.title }}"
embed-description: ${{ github.event.pull_request.body }}
embed-url: ${{ github.event.pull_request.html_url }}
embed-footer-text: >
diff: +${{github.event.pull_request.additions}} -${{github.event.pull_request.deletions}}
11 changes: 10 additions & 1 deletion .github/workflows/label_core_team_prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Label Core Team PRs
on:
pull_request_target:

permissions: {}

env:
TZ: /usr/share/zoneinfo/America/Los_Angeles
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#cache-segment-restore-timeout
Expand All @@ -11,14 +13,21 @@ env:
jobs:
check_maintainer:
uses: facebook/react/.github/workflows/shared_check_maintainer.yml@main
permissions:
# Used by check_maintainer
contents: read
with:
actor: ${{ github.event.pull_request.user.login }}
is_remote: true

label:
if: ${{ needs.check_maintainer.outputs.is_core_team == 'true' }}
runs-on: ubuntu-latest
needs: check_maintainer
permissions:
# Used to add labels on issues
issues: write
# Used to add labels on PRs
pull-requests: write
steps:
- name: Label PR as React Core Team
uses: actions/github-script@v7
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/site_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
pull_request:
types: [opened, synchronize, reopened]

permissions: {}

jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -25,7 +27,7 @@ jobs:
- name: Restore cached node_modules
uses: actions/cache@v4
with:
path: "**/node_modules"
path: '**/node_modules'
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}

- name: Install deps
Expand Down
30 changes: 24 additions & 6 deletions TRANSLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,23 @@
| Орудний | _пропом_ | _пропсами_ |
| Місцевий | _пропі_ | _пропсах_ |

Бандл

| Відмінок | Однина | Множина |
| -------- | ------ | ------- |
| Називний | _бандл_ | _бандли_ |
| Родовий | _бандла_ | _бандлів_ |
| Давальний | _бандлу_ | _бандлам_ |
| Знахідний | _бандл_ | _бандли_ |
| Орудний | _бандлом_ | _бандлами_ |
| Місцевий | _бандлі_ | _бандлах_ |

Бандлер

| Відмінок | Однина | Множина |
| -------- | ------ | ------- |
| Називний | _бандлер_ | _бандлери_ |
| Родовий | _бандлеру_ | _бандлерів_ |
| Родовий | _бандлера_ | _бандлерів_ |
| Давальний | _бандлеру_ | _бандлерам_ |
| Знахідний | _бандлер_ | _бандлери_ |
| Орудний | _бандлером_ | _бандлерами_ |
Expand All @@ -100,15 +111,19 @@

| Оригінал | Переклад |
| ------------------ | ---------- |
| API reference | API довідник |
| API reference | Довідник API |
| app | застосунок |
| array | масив |
| arrow function | стрілкова функція |
| attribute | атрибут |
| batch | група оновлень |
| batching | групування |
| browser | браузер |
| build | збірка (результат); збирання (процес створення збірки); збирати (пакет, збірку); будувати, створити (компонент, архітектуру) |
| build tool | інструмент збирання |
| build tooling | інструменти збирання |
| bug | помилка, дефект |
| bundle | бандл; запаковувати |
| bundler | бандлер |
| callback | функція зворотного виклику |
| camelCase | *camelCase* |
Expand All @@ -125,7 +140,7 @@
| development | розробка |
| development mode | режим розробки |
| developer tools | інструменти розробника |
| React developer tools | інструменти React розробника |
| React developer tools | інструменти розробника React |
| DOM container | DOM-контейнер |
| effect | ефект |
| encapsulation | інкапсуляція |
Expand All @@ -135,7 +150,7 @@
| error log | лог помилок |
| event handler | обробник події |
| fallback | запасний |
| feature | особливість |
| feature | функція; особливість |
| framework | фреймворк |
| function component | функційний компонент |
| helper | допоміжний(а); *helper function — допоміжна функція* |
Expand All @@ -160,12 +175,15 @@
| Note | Примітка |
| online | онлайн |
| online playground | онлайн пісочниця |
| overview | огляд; вступ (тільки як вступна частина розділів та сторінок)|
| package manager | менеджер пакетів |
| package registry | реєстр пакетів |
| paint | фарбування, перефарбування |
| performance | продуктивність (TODO: розглянути "швидкодію") |
| prop | проп |
| props | пропси |
| production | продакшн |
| production mode | продакшн-режим |
| production | публічне середовище; впровадження |
| production mode | (у режимі) публічного середовища; режим публічного впровадження |
| reducer | редюсер |
| reuse | повторне використання, перевикористання |
| React | React |
Expand Down
2 changes: 1 addition & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ module.exports = {
},
},
},
}
};
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions public/js/jsfiddle-integration-babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

// Do not delete or move this file.
// Many fiddles reference it so we have to keep it here.
(function() {
(function () {
var tag = document.querySelector(
'script[type="application/javascript;version=1.7"]'
);
if (!tag || tag.textContent.indexOf('window.onload=function(){') !== -1) {
alert('Bad JSFiddle configuration, please fork the original React JSFiddle');
alert(
'Bad JSFiddle configuration, please fork the original React JSFiddle'
);
}
tag.setAttribute('type', 'text/babel');
tag.textContent = tag.textContent.replace(/^\/\/<!\[CDATA\[/, '');
Expand Down
6 changes: 4 additions & 2 deletions public/js/jsfiddle-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

// Do not delete or move this file.
// Many fiddles reference it so we have to keep it here.
(function() {
(function () {
var tag = document.querySelector(
'script[type="application/javascript;version=1.7"]'
);
if (!tag || tag.textContent.indexOf('window.onload=function(){') !== -1) {
alert('Bad JSFiddle configuration, please fork the original React JSFiddle');
alert(
'Bad JSFiddle configuration, please fork the original React JSFiddle'
);
}
tag.setAttribute('type', 'text/jsx;harmony=true');
tag.textContent = tag.textContent.replace(/^\/\/<!\[CDATA\[/, '');
Expand Down
4 changes: 2 additions & 2 deletions scripts/headingIDHelpers/walk.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ const fs = require('fs');

module.exports = function walk(dir) {
let results = [];
/**
/**
* If the param is a directory we can return the file
*/
if(dir.includes('md')){
if (dir.includes('md')) {
return [dir];
}
const list = fs.readdirSync(dir);
Expand Down
4 changes: 2 additions & 2 deletions scripts/headingIdLinter.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const validateHeaderIds = require('./headingIDHelpers/validateHeadingIDs');
const generateHeadingIds = require('./headingIDHelpers/generateHeadingIDs');

/**
/**
* yarn lint-heading-ids --> Checks all files and causes an error if heading ID is missing
* yarn lint-heading-ids --fix --> Fixes all markdown file's heading IDs
* yarn lint-heading-ids path/to/markdown.md --> Checks that particular file for missing heading ID (path can denote a directory or particular file)
* yarn lint-heading-ids --fix path/to/markdown.md --> Fixes that particular file's markdown IDs (path can denote a directory or particular file)
*/
*/

const markdownPaths = process.argv.slice(2);
if (markdownPaths.includes('--fix')) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/DocsFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function FooterLink({
/>
<div className="flex flex-col overflow-hidden">
<span className="text-sm font-bold tracking-wide no-underline uppercase text-secondary dark:text-secondary-dark group-focus:text-link dark:group-focus:text-link-dark group-focus:text-opacity-100">
{type}
{type === 'Previous' ? 'Попередня' : 'Наступна'}
</span>
<span className="text-lg break-words group-hover:underline">
{title}
Expand Down
38 changes: 38 additions & 0 deletions src/components/Icon/IconExperimental.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/

import {memo} from 'react';

export const IconExperimental = memo<
JSX.IntrinsicElements['svg'] & {title?: string; size?: 's' | 'md'}
>(function IconCanary(
{className, title, size} = {
className: undefined,
title: undefined,
size: 'md',
}
) {
return (
<svg
className={className}
width={size === 's' ? '12px' : '20px'}
height={size === 's' ? '12px' : '20px'}
viewBox="0 0 20 20"
version="1.1"
xmlns="http://www.w3.org/2000/svg">
{title && <title>{title}</title>}
<g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
<g
id="noun-labs-1201738-(2)"
transform="translate(2, 0)"
fill="currentColor"
fillRule="nonzero">
<path
d="M10.2865804,5.55665262 L10.2865804,2.22331605 L10.8591544,2.22331605 C11.0103911,2.22244799 11.1551447,2.16342155 11.2617505,2.05914367 C11.3684534,1.95486857 11.4282767,1.81370176 11.4282767,1.66667106 L11.4282767,0.556642208 C11.4282767,0.40907262 11.3678934,0.26747526 11.2605218,0.16308627 C11.1531503,0.0587028348 11.0074938,0 10.8556998,0 L5.14338868,0 C4.9915947,0 4.84594391,0.0587028348 4.73856664,0.16308627 C4.63119507,0.267469704 4.57081178,0.40907262 4.57081178,0.556642208 L4.57081178,1.66667106 C4.57081178,1.81434899 4.63119507,1.95594912 4.73856664,2.06033811 C4.8459382,2.16472155 4.9915947,2.22331605 5.14338868,2.22331605 L5.71596273,2.22331605 L5.71596273,5.55665262 C5.71596273,8.38665538 2.97295619,9.88999017 0.651686904,15.5566623 C-0.0957823782,17.360053 -2.00560068,20 7.99951567,20 C18.004632,20 16.0948137,17.3600252 15.3507732,15.5566623 C13.0124432,9.88999017 10.2865804,8.38665538 10.2865804,5.55665262 Z M9.89570197,10.709991 C10.0921412,10.709991 10.2805515,10.7858383 10.4193876,10.9209301 C10.5583466,11.0559135 10.6363652,11.2390693 10.6363652,11.4300417 C10.6363652,11.6210141 10.5583466,11.8040698 10.4193876,11.9391533 C10.2805401,12.0741367 10.0921412,12.1499813 9.89570197,12.1499813 C9.6992627,12.1499813 9.51096673,12.074134 9.37201631,11.9391533 C9.23316875,11.8040615 9.15515307,11.6210141 9.15515307,11.4300417 C9.15515307,11.2390693 9.2331716,11.0559024 9.37201631,10.9209301 C9.57264221,10.7258996 9.61239426,10.709991 9.89570197,10.709991 Z M8.98919546,9.04212824 C9.09790709,9.14792278 9.15884755,9.29158681 9.1585213,9.44110085 C9.15829001,9.59073155 9.09678989,9.73407335 8.98763252,9.83954568 C8.87847514,9.945018 8.73069852,10.0039347 8.57678157,10.0033977 C8.42286747,10.0027392 8.27565088,9.94273467 8.16727355,9.83639845 C8.05900765,9.73006224 7.99873866,9.58628988 7.99963013,9.43664806 C8.00052304,9.28788403 8.0620221,9.14542556 8.17051087,9.04048101 C8.27911107,8.93555591 8.42599335,8.87663641 8.57913312,8.87663641 C8.73291864,8.87665585 8.88047525,8.93622535 8.98919546,9.04212824 Z M7.99965585,17.9999981 C4.91377349,17.9999981 3.29882839,17.7332867 2.51364277,17.4999976 C2.37780966,17.4476975 2.26954376,17.3439641 2.21396931,17.2125528 C2.15838628,17.0811499 2.16006066,16.9334692 2.21876871,16.8033858 C2.6144474,15.5921346 3.14916224,14.4280501 3.81316983,13.3333824 C5.980145,9.82337899 8.22941036,13.8867718 10.0980836,13.8867718 C11.9666996,13.8867718 11.4695868,12.1534924 12.1827971,13.3333824 C12.8511505,14.4269112 13.3916656,15.5896902 13.794259,16.8000524 C13.8533022,16.9322137 13.8537479,17.0822749 13.7952635,17.2147751 C13.7368889,17.3472613 13.6248314,17.4504531 13.4856467,17.5000531 C12.6833967,17.7332867 11.0855382,17.9999981 7.99965585,17.9999981 Z"
id="Shape"></path>
</g>
</g>
</svg>
);
});
6 changes: 3 additions & 3 deletions src/components/Layout/Feedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ function SendFeedback({onSubmit}: {onSubmit: () => void}) {
{exit: isSubmitted}
)}>
<p className="w-full text-lg font-bold text-primary dark:text-primary-dark me-4">
{isSubmitted ? 'Thank you for your feedback!' : 'Is this page useful?'}
{isSubmitted ? 'Дякуємо за відгук!' : 'Ця сторінка корисна?'}
</p>
{!isSubmitted && (
<button
aria-label="Yes"
aria-label="Так"
className="px-3 rounded-lg bg-secondary-button dark:bg-secondary-button-dark text-primary dark:text-primary-dark me-2"
onClick={() => {
setIsSubmitted(true);
Expand All @@ -83,7 +83,7 @@ function SendFeedback({onSubmit}: {onSubmit: () => void}) {
)}
{!isSubmitted && (
<button
aria-label="No"
aria-label="Ні"
className="px-3 rounded-lg bg-secondary-button dark:bg-secondary-button-dark text-primary dark:text-primary-dark"
onClick={() => {
setIsSubmitted(true);
Expand Down
Loading