DEV Community

Phuoc Nguyen profile picture

Phuoc Nguyen

Created https://formvalidation.io ∙ https://blur.page ∙ https://react-pdf-viewer.dev Care about front-end, #react, #sveltejs, #typescript, #Swift, #macOS

Pass a ref to a custom hook

Pass a ref to a custom hook

Comments
5 min read

Want to connect with Phuoc Nguyen?

Create an account to connect with Phuoc Nguyen. You can also sign in below to proceed if you already have an account.

Already have an account? Sign in
Detect whether an element is in view

Detect whether an element is in view

1
Comments
5 min read
Save the previous value of a variable

Save the previous value of a variable

Comments
5 min read
Persist values between renders

Persist values between renders

Comments
6 min read
Drag and drop items within a list

Drag and drop items within a list

Comments
7 min read
Build your own drawing board

Build your own drawing board

Comments
10 min read
Reference an element with React's useRef() hook

Reference an element with React's useRef() hook

Comments
11 min read
Create a reference using React.createRef()

Create a reference using React.createRef()

Comments
11 min read
Pass refs to child components using the function as a child pattern

Pass refs to child components using the function as a child pattern

Comments
4 min read
Make an element draggable

Make an element draggable

Comments
6 min read
Create a custom hook returning a callback ref

Create a custom hook returning a callback ref

Comments
10 min read
Save the element passed to a callback ref as a state

Save the element passed to a callback ref as a state

Comments
5 min read
Implement a basic container query with callback refs

Implement a basic container query with callback refs

Comments
6 min read
Use callback refs to access individual elements in a list

Use callback refs to access individual elements in a list

Comments
7 min read
Access the methods of class components

Access the methods of class components

Comments
7 min read
Store a reference with callback refs

Store a reference with callback refs

Comments
8 min read
String refs

String refs

Comments
7 min read
Access a component's underlying DOM node with findDOMNode()

Access a component's underlying DOM node with findDOMNode()

Comments
5 min read
Your complete guide to mastering the use of "ref" in React

Your complete guide to mastering the use of "ref" in React

Comments 2
1 min read
Common tasks of managing HTML DOM with vanilla JavaScript

Common tasks of managing HTML DOM with vanilla JavaScript

38
Comments 3
2 min read
CSS Layout: A collection of popular layouts and patterns made with CSS

CSS Layout: A collection of popular layouts and patterns made with CSS

328
Comments 14
1 min read
A React PDF viewer

A React PDF viewer

13
Comments 1
1 min read
loading...