What is meant by Browser-API in react js? Broswer API in useEffect Hooks?
Asked
Active
Viewed 926 times
0
-
1what's the context of this question? Did some article or documentation use that term? – Nicholas Tower Apr 20 '20 at 15:56
-
2The API of the browser? Impossible to say without any context. – Dave Newton Apr 20 '20 at 15:57
-
https://reactjs.org/docs/hooks-effect.html – SRO Apr 21 '20 at 15:27
-
Here is the link for reference. – SRO Apr 21 '20 at 15:27
1 Answers
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