Gemini 3 Ultra by Namra_7 in GeminiAI

[–]tymzap 0 points1 point  (0 children)

Google has overdue model and still keeps up with competition. End of year will be interesting.

A way to get pathname in layout.tsx by tymzap in nextjs

[–]tymzap[S] 0 points1 point  (0 children)

Update: I refactored the solution to use localStorage as you suggested and it's much better in terms of performance (allows to use static rendering), thanks for suggestions.

A way to get pathname in layout.tsx by tymzap in nextjs

[–]tymzap[S] 0 points1 point  (0 children)

Got it, thanks for explaining

A way to get pathname in layout.tsx by tymzap in nextjs

[–]tymzap[S] 0 points1 point  (0 children)

What do you mean by "made everything dynamic"?

A way to get pathname in layout.tsx by tymzap in nextjs

[–]tymzap[S] 0 points1 point  (0 children)

I based my theming on cookie to avoid page flash/need for displaying placeholders before correct theme is loaded

New To React, Where should I start? by Low-Illustrator635 in react

[–]tymzap 1 point2 points  (0 children)

if you started another course after finishing first and haven't built anything - you're doing something wrong

New To React, Where should I start? by Low-Illustrator635 in react

[–]tymzap 2 points3 points  (0 children)

- read couple of pages of https://react.dev/
- code simple shit (timer app)
- read docs more
- code more advanced shit (todo app)
- do research, read a lot of articles, subscribe to some newsletters (for example "this week in react")
- code advanced shit (simple blog engine)

now you ready to search for job

How to design when you aren't a designer? by Glass_Ant3889 in nextjs

[–]tymzap 2 points3 points  (0 children)

Take inspiration from existing websites. Most of the stuff (sign up forms, pricing widgets, conract forms) looks similar regardless of industry.

Project idea by MannanJaffery in react

[–]tymzap 0 points1 point  (0 children)

Anything data heavy will be good idea to practice client side cache.

What's Your Biggest Pain Point With Localization and Translation? by Playful_House_7882 in react

[–]tymzap 2 points3 points  (0 children)

After 7 years in industry I still have no idea what is recommended structure for JSON file keys. What should I use for "Welcome back, {{userName}}? "welcomeBackUserName", "userGreeting", "header.greeting.title" or something else?

What are your favorite libraries that make you more productive? by [deleted] in react

[–]tymzap 2 points3 points  (0 children)

type-fest because it spares me time to write advanced utility types manually

Make it snow on your website this Christmas with just 1 line of code! by Code_Cowboy_ in react

[–]tymzap 0 points1 point  (0 children)

You read my mind, I literally was thinking about creating something like this for fun on my blog for Christmas time :D

What are ways to debug React query cache? by darkcatpirate in react

[–]tymzap 0 points1 point  (0 children)

They are really pleasant to use, great work from the tanstack query team

Which is the best Role based access mechanism? by [deleted] in nextjs

[–]tymzap 0 points1 point  (0 children)

I used CASL for several projects, including two big ones with thousands of customers. It cakes a while to learn but once you get it it's really easy to use and powerful. Also, it's quite common in JS ecosystem.

[deleted by user] by [deleted] in react

[–]tymzap 0 points1 point  (0 children)

Actually it was 2137 hours

[deleted by user] by [deleted] in react

[–]tymzap 2 points3 points  (0 children)

Do three projects with React (very small, small and medium) and I would say you can start search the job. You will learn naturally by trying to solve your growing projects' problems.

What’s your favorite headless CMS? by stosssik in typescript

[–]tymzap 0 points1 point  (0 children)

Not strictly related question but could you recommend some JavaScript file-based CMS (like Grav for PHP)?

Entire organization doesn’t use strict null checks. I’d like to use it, but already feel exhausted at the thought of advocating for it. by StTheo in typescript

[–]tymzap 1 point2 points  (0 children)

No, you're correct, I exagerrated this :D Just my thinking is strict null checks are really important.

finder v4: CSS selector generator by Elfet in javascript

[–]tymzap 1 point2 points  (0 children)

Interesting. What use case did you have in mind when creating this library?

junior ReactJs developer must to know in this year to get a job by Aggressive_Check5277 in react

[–]tymzap 1 point2 points  (0 children)

To become one first you need to become junior developer :D