|
|
|
|
|
by azimuth11
2571 days ago
|
|
While you wouldn't want to leave "console.log" in your code in production, you can use them in function components just like a classes' render methods. A better example (from the video "React Today and Tomorrow and 90% Cleaner React With Hooks" from October[1]) is something along the lines of updating document.title = `${some} Page` or possibly calling an API. [1]: https://www.youtube.com/watch?v=dpw9EHDh2bM |
|
I think it's clear from the parent I was responding to that they have better use-cases in mind :)