DEV Community

Discussion on: MERN Backend Modules - 4

Collapse
 
rkganeshan profile image
rkganeshan

Just some suggestions:
Hey, in the latest versions of Express(4.18.1), we need not use body parser explicitly, instead we can use as:
app.use(express.json());
app.use(express.urlencoded({ extended: true }));

Collapse
 
shubhamtiwari909 profile image
Shubham Tiwari

Yeah i used it the same way in my 6th blog of this series where I performed the CREATE operation of CRUD