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.

Filter by
Sorted by
Tagged with
-1
votes
0answers
23 views

Need input on naming convention for variables, function and components for a mini React/Typescript App [closed]

I always got this feedback to improve upon the naming convention for variables and functions/components. A few days back I have submitted the coding challenge for an interview and I didn't make it to ...
1
vote
1answer
28 views

Query messages and 'bold' part of a message. Show one query at a time but get the next query in advance for better user experience

In this react component I'm trying to display one message on the screen at a time. This message has a 'bold' substring in it which should be accounted for. There's 2 endpoints here, ...
2
votes
1answer
37 views

Setting and clearing setTimeout() inside of an event handler

I have an event handler function which every time is triggered should clear a setTimeout() and set a new timeout. Now the callback for the timeout has to take few ...
1
vote
1answer
25 views

Created a basic User Profile List using an API (React)

I'm relatively new when it comes to programming in React and in JavaScript, but have a surface level understanding of what things do. I've created a basic program that fetches user data from an API ...
2
votes
1answer
36 views

My first React custom hook

I need to change the page title based on the current state of my store. Right now I came up with ...
1
vote
1answer
23 views

Is there a cleaner/better way to write this Contact Manager in React?

I am learning React by doing a Contact Manager, I am trying to write this code more efficiently. Any ideas...good practise, component splitting, formatting tips are accepted too. Thanks in advance P.S....
1
vote
0answers
17 views

My First React JS Portfolio Web App : A Restaurant Website

I have written my first react js web app. It is a portfolio project which is a restaurant website. I have used firebase to authenticate users and to host my website. I am asking the Code Review ...
2
votes
0answers
65 views

My first website in ReactJS

I wrote my first working website in ReactJs as a beginner and I have a few questions. First question is about meta-tags. I used ...
3
votes
1answer
31 views

Redux Toolkit Structure with TS

I've just taken the leap over to RTK instead of 'vanilla' redux and am blown away by how much less code I need to write. I'm not entirely sure how to structure my slices, however, and figured I'd ask ...
3
votes
1answer
28 views

Get default value from query params + repeating code

The main goal of this task is to take values from the query parameter and put it in inputu. The first problem is that I don't know much about how to do it so that the code doesn't repeat itself and I ...
1
vote
1answer
29 views

Dynamic social media component w/ dark mode

Note: This is my first post for a code review, so any feedback on what other info would be helpful to post (if any) would be much appreciated! React component: Social.js The component has an input of ...
1
vote
0answers
20 views

W3 automatic slideshow converted to React (gatsbyjs)

The original Javascript slider is on W3 schools. I modified it to work as a slider for my homepage. The goal is to call it into index.js (which works) and use it at ...
0
votes
0answers
18 views

React Native FlatList with Scroll-To-load data

I am creating an application that interacts with spotify. A part of my app is a FlatList screen displaying a list of songs and song controls. I am under the ...
3
votes
0answers
74 views

Dynamic text rendering from form data, Express proxy server API requests, and validation in React

I've created a Node.js/Express application that accepts personal data in a form on the front end with React (name, address, etc). It's purpose is to take a user's name, address, and some other info ...
5
votes
1answer
287 views

Alarm Clock with React.js

Preamble This is an Alarm Clock app. The way it works is pretty simple: you change the time by pressing the +/- buttons and set the time by pressing the play button. When the time is up, the alarm ...

15 30 50 per page
1
2 3 4 5
35