Bhai this video has helped me the way that I cant even tell you. I m building my first ever web project and it took me 1 week to create my backend with spring boot and 5 days for my react front end....everything was going makkhan and then I have spent whole week connecting my backend to my front and I have failed miserably....u have helped me a lot....tussi great ho pajji
Sir, please tell me ...if we are using async and await to fetch the data ..then how to use the map with useState? Because initially the 'state' is empty and map function will not work with state.map().. I mean that state.map() function will execute first than the async and await in useEffect().
Sir ho nhi rha hai console log/warn dono me dikha नहीं रहा है error कूछ नहीं है. Dowload the React devtools for a better development experience aisa दीखा रहा है. Browser extension edge chrome है
there is delay in fetching data from an API which shows an error marking cannot read property 'MAP" is undefined.'.....because state value is empty. mene ASYNC and AWAIT bhi use kiya h..lekin kaam nhi ban pa rha h. kya koi or way h ki jab tak API se Data "STATE" me load nhi ho jata tab tak MAP function render na ho react me? PLEASE SIR HELP ME...I AM FRESHER AND WORKING ON LIVE PROJECT ..BAUT TIME LAGA DIYA H MENE ISS ERROR ME.LEKIN KOI SOLUTION NHI MIL RHA. PLEASE HELP.
how to set contact from 7 (WordPress plugins) post API in react ? i am finding this solution since 1 month and still is not slow .. please make a video about this .
I don't know you see my comment or not but i have a question if my user want to enter an smthing and according to their input i want to show smthing using api.. for example I'm using railway api for search stations, my user enter new york there then i get response from api in console but I'm unable to show it to my website.. who to do that??
I am having error with the api and error is data.map is not an function but everything is correct My code import React from "react"; import { useEffect, useState } from "react"; export const Blog = () => { const [data, setData] = useState([]); useEffect(() => { fetch("localhost:1337/api/blogs", { method: "GET", }) .then(function (response) { return response.json(); }) .then(function (data) { console.log(data); setData(data); }); }, []); return ( {data.map(res => { return {res.title}; })} Blog ); };
Right on the money!
Bhai this video has helped me the way that I cant even tell you. I m building my first ever web project and it took me 1 week to create my backend with spring boot and 5 days for my react front end....everything was going makkhan and then I have spent whole week connecting my backend to my front and I have failed miserably....u have helped me a lot....tussi great ho pajji
Thank you bro bahut hi easy way me describe kiya h ( USE of API )....... 😍😍😍😍
Sir aapke sabhi video shandaar h
thnx sir bht achi videos hn apki
from rana pakistani
this was such an amazing video.. 👌👌👌👌👌👌👌👌👌
Hey
Well and Simple word explaination
2:55 . You've mentioned how to create API in Laravel/Nodejs. Can you please refer me the link of how to make API with Laravel ?
Thanks for this tutorial your video help me to complete my blog website project 🥰
Sir aapne localhost:4000 ko kaise use Kiya wo nhi bataya
Good Explanation ♥️
Sir, please tell me ...if we are using async and await to fetch the data ..then how to use the map with useState? Because initially the 'state' is empty and map function will not work with state.map().. I mean that state.map() function will execute first than the async and await in useEffect().
useState([]). Blank array will work in your case
Thanks for this tutorial It helps me lot🙏🙏
My pleasure 😊
sir u r excellent
thank you soooooooooooooooooooooooooooooooooooooooo much
Welcoooooooooooooome 😉
Kiya using api integrations live chat app ban sakta hen
sir agaar isme ek view kaa button lgaye or 1 bar mai 1 id ko view karana ho to kyaa krenge
Sir ho nhi rha hai console log/warn dono me dikha नहीं रहा है error कूछ नहीं है.
Dowload the React devtools for a better development experience aisa दीखा रहा है.
Browser extension edge chrome है
good one
Hello sir bahut din ho Gaye PHP tutorial start kijiye.
Sir isme address details ko kese get kre kyuki isme age kafi prototypes hote hai?
Wounderful
Thank you sir😊
Bhai agar hame api ko data display karne se rokna ho jabtak ki sara data load na ho jaye to uske liye kya karenge
Sir mera console mae result[] nhu dekh raha hai. Warning deraha hai kya kare. Warning hai::webpac- dev-server started
Hot Module Replacement enabled
where u made todo api
there is delay in fetching data from an API which shows an error marking cannot read property 'MAP" is undefined.'.....because state value is empty.
mene ASYNC and AWAIT bhi use kiya h..lekin kaam nhi ban pa rha h.
kya koi or way h ki jab tak API se Data "STATE" me load nhi ho jata tab tak MAP function render na ho react me?
PLEASE SIR HELP ME...I AM FRESHER AND WORKING ON LIVE PROJECT ..BAUT TIME LAGA DIYA H MENE ISS ERROR ME.LEKIN KOI SOLUTION NHI MIL RHA.
PLEASE HELP.
sir can you make latest vedios for react that will help us a lot
Sir axios use kiye h aap ki fetch
Make a video on websocket
Hare Krishna
I have that have you made that todolist by yourself if yes then how
you didnt convert it to the string and working correctly but it shows me a error when i am not converting it to string .
But from wher to get that API link
ha yaar API LINK KAHA SE LAYE
nice explaination
local host 4000 per todo ko kese access karu?
it is showing that data.map is not a function , what to do
Can we use express inside react.
I created json file but it's opening in 3000. Can someone please tell how to change port to 4000?
localhost4000 kasie banayi h
first install json server to create your own api it is one of the video of code step by step to practice
Aap API kaha se le ayi
Hum kaha a use karenge?
How did you create that api...users list...localhost/todo something??
Refer the old react tutorial video of creating project
@@UdayPawarUdi Which video? tell us pl.
@@nikleshniks u got it ?
@@swapnilgawde7024 Yes.. Thanks for the help ❤️❤️😊
@@swapnilgawde7024link of api video
how to call csv api in react hooks methods
mere y error kyu bta ra h data map is not a function
how to set contact from 7 (WordPress plugins) post API in react ? i am finding this solution since 1 month and still is not slow .. please make a video about this .
If you are getting data.map() issue, put JSON file in public folder.
m getting error data.map() is not a function
@@helloworld-rq6gl have tried my solution?
yes ! it worked thanks
json formmate kaha milega
How to fetch with get method with putting token for authenticating the access.
aapne API ki kisi bhi video ka API ka link nahi diya bhai, uske bina kaise kaam karenge ?
Please provide us API link .
I don't know you see my comment or not but i have a question if my user want to enter an smthing and according to their input i want to show smthing using api.. for example I'm using railway api for search stations, my user enter new york there then i get response from api in console but I'm unable to show it to my website.. who to do that??
i have same question
.map is not function how to solve it ????
Fetch url kidher se laye app please batao
Json placeholder website se Google per available hai abhi bhi
sir, how to remove empty array
API called 2 times for me what is the reason?
call back function kya hota hae?
please answer [CORS disabled]?
sir apki api kam nhi kr raha hai mai 2024 memapki video dekh rha hu please sahi kriye
Hi Sir
I am getting error typeError: data.map is not a function
const[data,setData]=useState([]);
{ why happening this ?}
Same issue ... Did you solved this ?? Please tell if you have solved this ..
Cheak useState initial is correct or not
@@nazeedkhan10 const[data,setData]=useState([]);
create you own api using mockapi
Sir lekin aapne toh yeh bataya hi nhi ki yeh api aapne kaise banaya...ab iske bina ham khud se get api kaise kar sakte hai.
API banan, react developer ka kaam nhi hota bro, wo backend developers bnate hai
locahost:4000 kha se add kre
Sir ads control karien gandy scenes aa rahy hein.
Bhai ye to apki browser history and cache ke hisab se aati h, :D
@@codestepbystep i never want to install snack video and Tiktok but why its showing with negative video...
@@codestepbystep 😂😂😂
@@sportscity5487 Bro, if you install them then why they will show you ads. Logic ?????
@@codestepbystep 😛😛😛
worth it
data.map is not a function error
same error i am facing
@@wajahatshaikh121 same error
playlist ko sahi se structure karo bhai bahot jumbled hai
bhai jb tk comments ka pe response nhi kro tb tk subscribe or viewer increment nhi badenge
woh localhost:4000/todo kaha se laye woh to explain karo pehle
Sir api kahase laye bataya nehi
I am having error with the api and error is data.map is not an function but everything is correct
My code
import React from "react";
import { useEffect, useState } from "react";
export const Blog = () => {
const [data, setData] = useState([]);
useEffect(() => {
fetch("localhost:1337/api/blogs", {
method: "GET",
})
.then(function (response) {
return response.json();
})
.then(function (data) {
console.log(data);
setData(data);
});
}, []);
return (
{data.map(res => {
return {res.title};
})}
Blog
);
};
import React from "react";
import { useEffect, useState } from "react";
export const Blog = () => {
const [data, setData] = useState([]);
useEffect(() => {
fetch("localhost:1337/api/blogs", {
method: "GET",
})
.then(function (response) {
return response.json();
})
.then(function (data) {
console.log(data);
setData(data);
});
}, []);
return (
{data.map((res) => {
return {res.title};
})}
Blog
);
};
bro solution mila kya