Posts by Buzinas • 226 points
5 posts
-
5
votes2
answers2357
viewsA: Why is it necessary to use bind when working with ES6 and Reactjs?
As Gabriel’s answer is already quite complete, I will leave here a tip (that does not answer the question - making it clear from now on) that greatly facilitates the use of React in ES6. Instead of…
-
1
votes9
answers2096
viewsA: How to assign a function with parameters to click without executing it?
This is a very common doubt in Javascript. How to make the hidden function Groups() be assigned to my element without it being executed at the time of assignment? Has as solve this problem?…
-
3
votes1
answer96
viewsA: Catch title from a popup
Cannot take data from an external link pop-up because of Same-origin policy. Just out of curiosity, if the pop-up was an internal link, you could do so: /* ... */ var win = window.open('link.html');…
-
1
votes2
answers879
viewsA: Load javascript depending on the viewport?
To recover the @media width and @media height via Javascript cross-browser and cross-Devices: var w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0) var h =…
-
1
votes1
answer219
viewsA: Reserved word usage "import" in javascript
ES6 is no longer experimental, has been renamed ES2015, and has been approved since June. Most browsers are already implementing the vast majority of their specifications, and there are already very…