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 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 है
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().
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
Well and Simple word explaination
this was such an amazing video.. 👌👌👌👌👌👌👌👌👌
Hey
Thanks for this tutorial It helps me lot🙏🙏
My pleasure 😊
Thanks for this tutorial your video help me to complete my blog website project 🥰
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 ?
Good Explanation ♥️
thank you soooooooooooooooooooooooooooooooooooooooo much
Welcoooooooooooooome 😉
first install json server to create your own api it is one of the video of code step by step to practice
sir u r excellent
Sir aapne localhost:4000 ko kaise use Kiya wo nhi bataya
sir how to get that api u have created
same question
create you own api using mockapi
Wounderful
you didnt convert it to the string and working correctly but it shows me a error when i am not converting it to string .
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 है
Hare Krishna
I have that have you made that todolist by yourself if yes then how
Thank you sir😊
Make a video on websocket
where u made todo api
Hello sir bahut din ho Gaye PHP tutorial start kijiye.
it is showing that data.map is not a function , what to do
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
Sir axios use kiye h aap ki fetch
Kiya using api integrations live chat app ban sakta hen
But from wher to get that API link
ha yaar API LINK KAHA SE LAYE
Sir isme address details ko kese get kre kyuki isme age kafi prototypes hote hai?
Bhai agar hame api ko data display karne se rokna ho jabtak ki sara data load na ho jaye to uske liye kya karenge
create you own api using mockapi
sir can you make latest vedios for react that will help us a lot
nice explaination
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 agaar isme ek view kaa button lgaye or 1 bar mai 1 id ko view karana ho to kyaa krenge
good one
json formmate kaha milega
API called 2 times for me what is the reason?
Aap API kaha se le ayi
Hum kaha a use karenge?
localhost4000 kasie banayi h
aapne API ki kisi bhi video ka API ka link nahi diya bhai, uske bina kaise kaam karenge ?
Please provide us API link .
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
Sir mera console mae result[] nhu dekh raha hai. Warning deraha hai kya kare. Warning hai::webpac- dev-server started
Hot Module Replacement enabled
.map is not function how to solve it ????
Can we use express inside react.
local host 4000 per todo ko kese access karu?
sir apki api kam nhi kr raha hai mai 2024 memapki video dekh rha hu please sahi kriye
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 .
mere y error kyu bta ra h data map is not a function
Hi Sir
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
Fetch url kidher se laye app please batao
Json placeholder website se Google per available hai abhi bhi
how to call csv api in react hooks methods
How did you create that api...users list...localhost/todo something??
Refer the old react tutorial video of creating project
@@UdayPawarUdi which video bro?
plz link
@@UdayPawarUdi Which video? tell us pl.
@@nikleshniks u got it ?
@@swapnilgawde7024 Yes.. Thanks for the help ❤️❤️😊
sir, how to remove empty array
call back function kya hota hae?
playlist ko sahi se structure karo bhai bahot jumbled hai
How to fetch with get method with putting token for authenticating the access.
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
please answer [CORS disabled]?
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 😛😛😛
locahost:4000 kha se add kre
I am getting error typeError: data.map is not a function
const[data,setData]=useState([]);
worth it
bhai jb tk comments ka pe response nhi kro tb tk subscribe or viewer increment nhi badenge
{ 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([]);
woh localhost:4000/todo kaha se laye woh to explain karo pehle
data.map is not a function error
same error i am facing
@@wajahatshaikh121 same error
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