All Questions
14 questions
1
vote
1
answer
79
views
Extract each occurrence from an array of objects
I have a huge list of 4k+ software products.
My goal is simple. I have a list of products. Each of those products has a software value. I would like to extract each software occurrence and covert it ...
4
votes
1
answer
1k
views
NextJS with a root level catchall route for all URLs dynamic middleware that splits into components
Here is the solution that I have. Due to the legacy product we have all of our URLs in one big Slug model in rails that maps URLs to models.
EG
...
2
votes
1
answer
351
views
TypeScript, React and Node app to get 'games' data from a database and display them on a frontend
This is only one of the first apps I've built with Node, React and TypeScript. I was wondering what could be made better. This is at this point the best I've been able to come up with, but I'm not ...
0
votes
1
answer
197
views
This code renders a time dilation calculator
I've been learning React for about a month now. I wrote a small interactive calculator to show the effects of time dilation under special relativity. It's Node/React/Razzle(for SSR)/Typescript/...
7
votes
1
answer
355
views
How do I refactor this fetch request?
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. ...
3
votes
3
answers
477
views
Is this a good approach for creating pages for multiple content typs with GatsbyJS?
I'm trying to create pages for multiple content types in Gatsby and I was wondering if this is the right approach:
My gatsby-node.js file:
...
5
votes
1
answer
79
views
Class for Switch statements
This is more to get clarity on an implementation that I did. I am working on a React, Node, and Electron application that essentially has a form that a user inputs values that will update some content ...
1
vote
0
answers
320
views
socket.io / jwt [closed]
I am studying socket.io and ended up making a connection using react as front end
js and how to back end node js
I was successful but I have a question as to how I made my code I don't know if it's "...
4
votes
1
answer
3k
views
Dockerfile to install Python and React in Linux container
I am learning how to use Docker. I'm creating a container that contains Python and React. This code works, but it seems so heavy when I install it. I only want React, but to get React, I install Node ...
3
votes
1
answer
378
views
A CRUD blog with a basic auth system made with the MERN stack
I would like some feedback on things that maybe could've been written a lot better. I used redux for handling state.
GitHub repo
Demo
This blog project is meant to create, read, update, and delete ...
2
votes
0
answers
253
views
Javascript node/react web developer interview code
I recently applied for a job as a node/react developer. I'm attempting to cross over from a research position to web development. I didn't get the job but all the feedback I got was that my code was ...
1
vote
1
answer
60
views
Exporting a list of projects in Node.JS
I am using the following code in a Node.js / React project. It works fine but it looks like it could be consolidated a little more using a OO pattern.
...
3
votes
1
answer
182
views
Very basic isomorphic JavaScript application
I'm trying to update my skillset by learning how to write isomorphic JavaScript applications. For my stack, I've chosen React and Express - no database yet.
The problem many people seem to face when ...
6
votes
1
answer
1k
views
Updating state with React
I am creating a blog using React, MongoDB, Express and Node. I have three components: App, List, and Item. The item is a blog post; the list is a list of the blog posts, and the app includes a place ...