Skip to content

Category: javascript lessons

React applications with Lazy Loading

React applications with Lazy Loading

GitHub: https://github.com/Furkan-Gulsen/ReactJS-Small-Projects CODE app.js data.js Source: https://medium.freecodecamp.org/how-to-optimize-react-applications-with-lazy-loading-232183e02768

getBoundingClientRect

DOM getBoundingClientRect()

The getBoundingClientRect () method returns the width, height, x and y coordinate, top, bottom, right, and left values ​​of the specified element.

DOM firstChild

DOM firstChild

Returns the first child of the connected node. Returns null if the node does not have a child.

DOM childNodes

DOM childNodes

The element.childNodes property returns an array of subnodes bound to the element node.

DOM parentNode()

DOM parentNode()

The HTML DOM parentNode() method returns a parent node of the specified node as the Node object.

DOM hasChildNodes

DOM hasChildNodes

The hasChildNodes () method returns true if the specified node has any child nodes.