What is meant by "Browser API" in React js?

1.1k Views Asked by At

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

1

There are 1 best solutions below

0
Dana Woodman On

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