CSS scale content while keeping aspect ratio

22 August, 2019

There sometimes we have a div like these :But we would like independently of the screen size, they should always be square, which means has…

React 16 time slicing trick

09 September, 2018

Normally React wants to keep the UI consistent with what you told it to render. So if you renderthen it will have to call render methods and…

How good are you with css

09 September, 2018

Given these classes:Which color would these divs be?Now see the answer ;)https://codepen.io/kossel/pen/PdEdLP

Me

26 August, 2018

Software Engineer, I enjoy b̶r̶e̶a̶k̶i̶n̶g̶ fixing stuff. I love good UI/UX and optimized code, Always interest in new and interesting…

Default implementation of shouldComponentUnpdate

13 December, 2017

tl;drAccording to React documentationIt just returns You can also see it in the source code (react 16.2.0)When it’s it does shallow…

Why call super or super(props)

13 December, 2017

In react world, many time we call and , I do that and saw in many places, however I’ve never asked myself what does it actually do…eg.So…

React 16 fragment vs container divs

13 December, 2017

In React 16.2, improved support for Fragments has been added. More information can be found on React’s blog post here.We are all familiar…

©Yichao 2018.