PHPnews.io

Overview for 'sebastiandedeyne'

Event delegation

Written by Sebastian De Deyne / Original link on Feb. 13, 2020

After learning how to select elements in the DOM, it's time to zoom into events. This is the third post in the JavaScript Framework Diet series.Haven't read the first two posts? Get started with the introduction.Consider the following piece of HTML:<a href="/projects"><svg><!-- List …


Selecting elements (part 2)

Written by Sebastian De Deyne / Original link on Feb. 6, 2020

In Selecting elements (part 1) we learned how to select elements from the DOM, and how to find elements inside other elements, both with our own $ and $$ helpers.In part 2, we're going to review two DOM element instance methods: closest and matches.Finding the nearest matching parent with closestEl…


Selecting elements (part 1)

Written by Sebastian De Deyne / Original link on Feb. 6, 2020

Lets get warmed up! Before we can get productive, we need two small helpers that we'll be using in most components we'll build from here on. I'm talking about $ and $$, which are wrappers around document.querySelector and document.querySelectorAll.function $(selector, scope = document) {return scop…


JavaScript Framework Diet

Written by Sebastian De Deyne / Original link on Feb. 6, 2020

Back in the early 2010s, skeuomorphic design was at its peak. Apple apps were the gold standard of visual design, and they all tried to mimic real-world objects and textures as realistically as possible.This lead to designers using a plethora of textures and depth, turning every Photoshop doc into …



What are the React team principles?

Written by Sebastian De Deyne / Original link on Jan. 8, 2020

Dan Abramov shared a short post on some key principles the React team sticks to. Some solid general advice here, it's not explicitly related to React.Absorb the ComplexityMaking React internals simple is not a goal. We are willing to make React internals complex if that complexity lets product deve…