DEV Community

Cover image for Finally, the question of how to centre a div is OVER !!!
shrey vijayvargiya
shrey vijayvargiya

Posted on

Finally, the question of how to centre a div is OVER !!!

Hello everyone,

Welcome to this week’s iHateReading newsletter.

A lot is going on in the programming domain, React conference 2024, GoogleI/O and chatGPT 4-o are the top most trending news in the last week.

React Conf 2024

Let’s start by providing overviews as well as detailed resources about each of them.

Image description

Read the thread

First, we will switch to React Conf 2024, the most awaited thing is over. If you have worked with react.js you must have experience in optimising code. I’ve written almost 10+ blogs on optimising react code and have been asked again and again in every interview about the same topic, How to optimise the react code and so on.

Watch all the React Conf videos over here on the YouTube channel

But the wait is OVER, React Compiler is open-source, and React Compiler itself compiles the code by adding the memoization as well as caching the react code at the run time and this makes everything easy.

In simple words, react code needs or requires 2 hooks to optimise the code, number 1 is useMemo and number 2 is useCallback.

But after the React compiler, we don’t need them anymore because the steps of memoizing and caching are handled directly by the React team in the next version under the name React Compiler, which is again the most satisfying news for any react.js developer.

Watch more about React Compiler in the video below.

Center the div

Finally, the question for each frontend dev Google even after 3/4 years of experience is OVER.

I watched Google I/O for Web dev along with Firebase and other changes Google will release. And all the changes in CSS, one thing has completely surprised me.

Image description

Google dev along with W3Org introduced this new CSS property to centre a div on the entire web screen. Logically the question of how to center a div is OVER because we don’t need flex or fixed CSS properties to center a div element.

Here is the full Google I/O video.

Chat GPT 4-o

This is again the most trending news on the internet.

It just makes us more dumb but how the GPT is growing and getting better is good news.

We won’t go much into detail in this email but overall the best thing in GPT 4-o is its ability to understand audio, image and text all together at the same time.

Read 12 impressive use cases for GPT 4-o

Image description

Interesting links/news

What new interesting things I’ve read or reading

Let’s not make it more boring. Directly read the email on the browser and feel free to share this newsletter with anyone in need or a friend.

Disclaimer - I am building this new cool product so one can read today's letter on the Karyam

Until next time, have a good day

Shrey

Top comments (1)

Collapse
 
zemerik profile image
Hemang Yadav

Nice blog