I found this during code review...

preview_player
Показать описание
This is definitely not how React was meant to be used #react #reactjs #reactjsdeveloper #programming #progammer #frontend #coding #code
Рекомендации по теме
Комментарии
Автор

The person who wrote this should be jailed

ivankraev
Автор

They were probably trying to draw the Mona Lisa using CSS...

Hizbullla
Автор

When you advance from senior developer to junior

ezetenduwilliams
Автор

Maybe this code come from a software or a tool that converts design into html.

EduCodigosPro
Автор

I've seen this in the DOM when someone blindly creates nested components, but not directly in a single component.😂

Ndzzle
Автор

the facts it's an component make it funnier

mbaharip
Автор

And that whole monstrosity is wrapped in <> WHY???!!! 😂😂😂😂😂

sick
Автор

I am just starting JavaScript, I don't even know React yet but this burned my eyes.

sohigh
Автор

Now I really want to know what he was doing

killham
Автор

This is what you call a "div soup"😂

codeVictor
Автор

i'd say one of the disadvantage of styled components like this, is no matter how many divs you have, its difficult to see styling on what styling is being applied,

Instead of redoing it, if the thing works, I'd just ask to break them down into multiple components and see if those components are already made somewhere, put them in a separate component and reuse them,

ankitpradhan
Автор

This is my exact same reaction when I open up devtools of a big project and I see dizaines of nested divs that are apparently there just for magical accessibility reasons

yassinesafraoui
Автор

This is the most accurate definition of YOLO 😁😅

piotrszczesniak
Автор

My face when I saw the nested divs "🤨?"

JerCarloCatallo
Автор

Some agencies from India and the sorts like to lock in customers by creating complex systems, wrappers and encapsulations that don’t make sense. This will frustrate new developers from migrating away from the system.

Priva_C
Автор

Never heard of refactoring into reusable components apparently

z_yt_
Автор

It's one of two things, or non-programmer writes code by copy-pasting it from somewhere with the only trick he knows or art project. I lead to believe first option.

belkamax
Автор

The ones who tries to draw something in Css usally write code like this.

Pilosofia
Автор

I’m really curious about how this ever came to be :-D

mrluckyuncle
Автор

It's called the divception pattern 😂😂😂

sharkonet