Skip to content
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

docs: translation for useRef #356

Merged
merged 9 commits into from
Apr 28, 2023
Merged

Conversation

xevorte
Copy link
Contributor

@xevorte xevorte commented Apr 27, 2023

Translation for API Reference / Hooks / useRef, referenced by #330

Closes #408

src/content/reference/react/useRef.md Outdated Show resolved Hide resolved
src/content/reference/react/useRef.md Outdated Show resolved Hide resolved
src/content/reference/react/useRef.md Outdated Show resolved Hide resolved
src/content/reference/react/useRef.md Outdated Show resolved Hide resolved
src/content/reference/react/useRef.md Outdated Show resolved Hide resolved
src/content/reference/react/useRef.md Outdated Show resolved Hide resolved
src/content/reference/react/useRef.md Outdated Show resolved Hide resolved
src/content/reference/react/useRef.md Outdated Show resolved Hide resolved
src/content/reference/react/useRef.md Outdated Show resolved Hide resolved

<ConsoleBlock level="error">

Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

</ConsoleBlock>

By default, your own components don't expose refs to the DOM nodes inside them.
Secara default, komponen Anda sendiri tidak mengekspos ref ke node DOM di dalamnya.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Secara default, komponen Anda sendiri tidak mengekspos ref ke node DOM di dalamnya.
Secara bawaan, komponen Anda sendiri tidak mengekspos ref ke node DOM di dalamnya.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mazipan @resir014 This word needs to be clarified in the Glossary later.

Discussion: #337 (comment)

xevorte and others added 2 commits April 28, 2023 03:23
Co-authored-by: Irfan Maulana <mazipanneh@gmail.com>
Co-authored-by: Irfan Maulana <mazipanneh@gmail.com>
Co-authored-by: Irfan Maulana <mazipanneh@gmail.com>
Copy link
Collaborator

@mhaidarhanif mhaidarhanif left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's good now.

@github-actions
Copy link

Size changes

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@mhaidarhanif mhaidarhanif merged commit e68e0e4 into reactjs:main Apr 28, 2023
4 checks passed
r17x pushed a commit that referenced this pull request May 8, 2023
Co-authored-by: M Haidar Hanif <git@mhaidarhanif.com>
Co-authored-by: Irfan Maulana <mazipanneh@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useRef
3 participants