Callback refs as componentDidMount in stateless functions in React
You might think that when developing user interfaces with React and if you want to e.g. apply jQuery method to an element, you must abandon your beloved stateless function in favor of class-based component, directly or indirectly via higher-order components, because stateless function doesn’t have componentDidMount life-cycle hook. You are wrong, you can use callback…
Kratka definicija protokola HTTP2
HTTP2 je naslednja verzija omrežnega protokola HTTP, protokola ki skrbi za komunikacijo med srežnikom in odjemalcem. Je nadgradnja obstoječe različice HTTP/1.1, kar pomeni, da bodo obstoječe aplikacije delovale nemoteno še naprej, imele pa bojo možnost koristiti tudi izboljšave, ki jih nudi HTTP/2. Te so v glavnem: pošiljanje večih HTTP zahtev po isti TCP povezavi, pošiljanje…
WordPress Settings API demystified
UPDATE I’ve made a wrapper which simplifies working with Settings API where you don’t have to deal with parameters that aren’t used outside of Settings API and are used just to connect sections and fields. You can find it among my gists on github here. Check included example and see how easy it is to…
Creating extendable WordPress theme
I think that every decent WordPress developer knows that the best way to modify a WordPress theme you don’t own is by creating a child theme, where you create a new style.css where you specify in its header comments which existing theme you are applying changes to. Funny thing is that for a long time…