0

What is meant by Browser-API in react js? Broswer API in useEffect Hooks?

Emile Bergeron
  • 17,074
  • 5
  • 83
  • 129
SRO
  • 1
  • 2

1 Answers1

2

This means the Browser Javascript API, meaning any Javascript methods that interact with the browser, like finding elements on the page, fetching data, setting cookies etc.

Please see here for more info.

I assume you are talking about this page?

// Update the document title using the browser API
document.title = `You clicked ${count} times`;

They're not implying you have to use the browser APIs, just that in this example they are to set the page title.

Hope that makes it a bit more clear

Dana Woodman
  • 4,148
  • 1
  • 38
  • 35