I have come across this in React and Vanilla JS. I know this us using React Hooks.
setData(result ?? []);
What does the ??
mean or what does it do?
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I have come across this in React and Vanilla JS. I know this us using React Hooks.
setData(result ?? []);
What does the ??
mean or what does it do?