StackClone
U

All Questions

128
2
1,502
How to map over an array in JavaScript?

I have an array of objects and I want to transform it into an array of strings, extracting a specific property from each object. What is the most idiomatic way to do this in JavaSc...

javascript
arrays
es6
AL
askedabout 1 year ago
AliceWonder1,250
45
1
876
Next.js build fails with cryptic error message

My Next.js application (version 14.1.0) suddenly started failing during the build process. The error message is `Error: > Build failed because of webpack errors`. There are no othe...

nextjs
webpack
build-error
BO
askedabout 1 year ago
BobTheBuilder870
210
2
2,349
CSS styles not applying to a specific element

I have a `div` with a class `my-custom-box`, and I am trying to apply a background color to it. HTML: `<div class="my-custom-box">Content</div>` CSS: `.my-custom-box { backgroun...

css
specificity
styling
CH
askedabout 1 year ago
CharlieCode2,400
76
0
601
Best way to manage global state in React without Redux?

I am working on a small to medium-sized React application and I want to avoid the boilerplate of Redux. What are some modern alternatives for managing global state? I have heard ab...

react
state-management
zustand
jotai
context-api
DI
askedabout 1 year ago
DianaDev550