⛑ CSS Flexbox Layout Guide
Our comprehensive guide to CSS flexbox layout. This complete guide explains everything about flexbox, focusing on all the different possible properties for the parent element (the flex container) and the child elements (the flex items). It also includes history, demos, patterns, and a browser support chart.
Our comprehensive guide to CSS flexbox layout. This complete guide explains everything about flexbox, focusing on all the different possible properties for the parent element (the flex container) and the child elements (the flex items). It also includes history, demos, patterns, and a browser support chart.
❤6👍6🔥1
📝 How does map.entries() work?
The Map.entries() function returns a new iterator that contains [key, value] arrays for each pair of elements in the map object, in the order they were added to the object.
This method can be useful when you want to iterate over all the elements of a Map object and perform some action on each pair.
Map.entries() returns an iterator, not an array, for an array in the end, you should use other methods
The Map.entries() function returns a new iterator that contains [key, value] arrays for each pair of elements in the map object, in the order they were added to the object.
This method can be useful when you want to iterate over all the elements of a Map object and perform some action on each pair.
Map.entries() returns an iterator, not an array, for an array in the end, you should use other methods
👍5❤3
🖥 How does Object.create() work?
The Object.create method creates a new object with the specified prototype and properties.
It takes two arguments: the first is an object that will be the prototype for the new object.
The second is an optional object containing the properties and their descriptors that will be added to the new object.
If the first argument is not passed or is null, the new object will be created with Object.prototype as the prototype.
The Object.create method creates a new object with the specified prototype and properties.
It takes two arguments: the first is an object that will be the prototype for the new object.
The second is an optional object containing the properties and their descriptors that will be added to the new object.
If the first argument is not passed or is null, the new object will be created with Object.prototype as the prototype.
👍8❤2🔥1
💻 What are React Server Components? Understanding the Future of React Apps
React Server Components (RSC) is the latest and perhaps the most significant change since React hooks. Notably, big voices in the React community have endorsed RSCs, highlighting their importance in the future of React. However, this change has met with mixed reactions within the community
React Server Components (RSC) is the latest and perhaps the most significant change since React hooks. Notably, big voices in the React community have endorsed RSCs, highlighting their importance in the future of React. However, this change has met with mixed reactions within the community
❤8👍2
🏄 CSS Grid Areas
CSS Grid support has been widely available since March 2017 in all major browsers. Yet, here we are in 2024, and I still see few people using the grid template areas feature.
It’s no surprise that many avoid template areas as making sense of the grid is challenging enough. In this interactive article, I aim to shed light on this feature and, hopefully, convince you to use it more often. Once you see the simplicity and power of template areas, you may reach for them much more frequently.
CSS Grid support has been widely available since March 2017 in all major browsers. Yet, here we are in 2024, and I still see few people using the grid template areas feature.
It’s no surprise that many avoid template areas as making sense of the grid is challenging enough. In this interactive article, I aim to shed light on this feature and, hopefully, convince you to use it more often. Once you see the simplicity and power of template areas, you may reach for them much more frequently.
👍10❤3