Skip to main content

Questions tagged [react.js]

React is a JavaScript library for building user interfaces. It uses a declarative paradigm that makes it easier to reason about your application and aims to be both efficient and flexible.

14 votes
2 answers
429 views

Introduction I used React to write a component, which is meant to be a faithful emulation of the input for "Tags" which you see at the top of every question/topic on SE. Why this project? If you're ...
ChrisW's user avatar
  • 13.1k
11 votes
2 answers
5k views

I've been working on learning React, and so like most people do when they get started on something new. I created an arbitrary simple project to get a bit more familiar with the concepts. It's so ...
Trappar's user avatar
  • 111
10 votes
1 answer
5k views

A Factory Pattern or Factory Method Pattern says that just define an interface or abstract class for creating an object but let the subclasses decide which class to instantiate. In other words, ...
Luis Valencia's user avatar
9 votes
4 answers
5k views

I recently reviewed a PR and saw the following. const parts = someString.split('.'); return parts[parts.length - 1]; was changed to ...
Willi Mentzel's user avatar
9 votes
4 answers
2k views

I'm learning React and I made this country guessing game. What improvements/suggestions do you have for it? Preview it here ...
Franky's user avatar
  • 129
9 votes
1 answer
2k views

I made this as a practice application to learn React. It is simply a box where someone can enter their name and a comment and submit it, and display other comments. This animated GIF illustrates what ...
Phrancis's user avatar
  • 20.5k
8 votes
3 answers
20k views

I have a React app that I am testing with the built-in jest testing tools. In the process of debugging, I sometimes send data to the console (e.g. console.log, <...
Andrew Willems's user avatar
8 votes
2 answers
5k views

In React, the render method must have one and exactly one child (although that child may have many more children). As a result, it becomes difficult to render ...
Dan's user avatar
  • 3,798
8 votes
2 answers
7k views

I was given the following exercise as part of a job interview process. I submitted my code and received the feedback that my solution is "close" but not "correct". My code executes just fine and ...
Daisy's user avatar
  • 83
8 votes
1 answer
1k views

Hi everyone ! I am new to react and more of a backend developper (working with Django, Symfony, Code Igniter mostly). But I want to get better at frontend and React seems to have a great community so ...
user3533042's user avatar
8 votes
1 answer
291 views

I have written a small app that fetches news items from an endpoint and displays them in a grid. I used React to create components and use them throughout the app. This is the first thing I have ...
alanbuchanan's user avatar
  • 1,322
7 votes
3 answers
234 views

I have not done Javascript programming in almost a decade. I see that it has changed a lot. Below is code that displays colourful block digits. Any constructive feedback is welcome. ...
FromTheStackAndBack's user avatar
7 votes
2 answers
2k views

I've written a to-do list app in React, as I am a beginner and this is my first app, I feel it can be improved. Some assistance in improving it, and how or why improvements are better would be much ...
asdf's user avatar
  • 217
7 votes
1 answer
153 views

My custom hook useTyper.js ended up as a bit of a mess and hard to read. It's mimicking a nested for-loop but using React.useRef...
HenrikSN's user avatar
  • 173
7 votes
1 answer
400 views

I have this code that fetches data from a 3rd party api and sends it to my backend to be processed. The 3rd party api needs to target the user's localhost address so it has to come from the front end. ...
Adrian Sultu's user avatar

15 30 50 per page
1
2 3 4 5
37