Category Archives: Без рубрики

JS.React. Wow! SetState is async )

The discussion is here. In my code i did like this to get the proper result of the state

Posted in Без рубрики | Leave a comment

Js.React. How do i search dom elements?

Example FullCode

Posted in Без рубрики | Leave a comment

JS. React. Components in class style and HOOKS

Source Pure Component with ShallowEqual HOOKS Details of react h in docs useEffect usePrevious shouldComponentUpdate -> useMemo для event useCallback

Posted in Без рубрики | Leave a comment

JS.React. Components in functional style

install react Source code What is interesting ? Example of component Css module (work from the box in react), we can use style var or any other we define class cat lib for conditional modifications of styles adding event handlers … Continue reading

Posted in Без рубрики | Leave a comment

Js. New way of creating methods in objects

Posted in Без рубрики | Comments Off on Js. New way of creating methods in objects

HTML.CSS.BoxModel

Here is the box model this will squeze box to definite size, for example 300 px width And this will set content width to 300 px There is a star selector that applies css rule to every element Horizontal margins … Continue reading

Posted in Без рубрики | Comments Off on HTML.CSS.BoxModel

HTML.CSS.Relative font size

This code will increase font size to 90 px. 3em means multiply to 300 %.

Posted in Без рубрики | Comments Off on HTML.CSS.Relative font size

HTML. CSS. Priority rules

Merge and overriding. Stylesheet (0) – > Style in header (1) -> Style Tag in other tag (2). In embraces the priority of the tag. Same tags will be overriden, other will be merged. Inheritance. Every children tag inherits css … Continue reading

Posted in Без рубрики | Comments Off on HTML. CSS. Priority rules

HTML. CSS3. Style Placement

There are 3 ways of styling html page From external file, linking through <link> tag From <style> tag on the page From inline <style> tag inside some tag, for example <p>

Posted in Без рубрики | Comments Off on HTML. CSS3. Style Placement

Delphi. Simple helper

Что такое хэлпер, можно прочитать здесь. Если кратко, то это класс расширяющий функциональность другого класса. Это немного похоже на наследование, но синтаксически выглядит по-другому, а именно: Теперь мы можем в любом классе вызывать логгер, не правда ли удобно? Области применения … Continue reading

Posted in Без рубрики | Comments Off on Delphi. Simple helper