look this is my js server that i built: const express = require('express'); const app =…
Jump to turn (6)
- 1look this is my js server that i built: const express = require('express'); cons
- 2is this correct import React, {useState} from "react";
- 3is it good?
- 4e.preventDefault(); this one
- 5ho does this code line setTaskList([...taskList, input]) works out?
- 6how to ad imput.value = ""; on this code import React, {useState} from "react";
- User
look this is my js server that i built: const express = require('express'); const app = express(); const port = 3000;
function middleware(req, res, next){ req.something = 'Something else'; console.log('This is the middleware passing throug'); next(); };
app.use(express.json()) app.use(express.static('public')) app.use(middleware)
app.get('/create-user', (req, res) =>{ console.log('This is gonna be print on my console') res.send(req.something) })
app.listen(port, () => { console.log(
Server is running on Port http://localhost:${port}/); }) son based on this knolage tell me what project can i start with in order to keep learning and advancing but as a begginer let's start with something basic please - Assistant