Skip to content

Write after end error when launch server in nodejs

I am beginner at NodeJS and I’m doing a “NodeJS and Express.js full course” at freecodecamp yt and I copied author code which for him works perfectly, but I got an error. Code: I don’t know why he got home, about and error page when user goes to the wrong page it should throw “Er…

Styling a text in react based on multiple conditions

I am using react and trying to see how to style some text based on multiple condtions. The conditions are based on status. So I have a map function that is iterating over an array of rows and they all have a status field. The five status’ are: ‘INTRO’ ‘BEGINNING’ ‘MIDDLE&#8…

How to use Fetch API and append correctly

This is my html This is example html i want to fetch This is code i know how to fetch and append whole html to my id=’data’ but i don’t want to append whole html but i only want to get class=”m-card single-page” of example.com and append to my id=’data’. I don’t…

Showing a forEach in HTML Element

Im fetching a group of documents in a forEach from Firestore, I know im fetching this all as I can see documents and is fields in the console. But when I add the id to the field fetched it only shows one document. (it should be 5 tiles and images but I can only see one) From reading I know