Display Records or Data From JSON File in React | Mapping Object | Temporary Database for React

Поделиться
HTML-код
  • Опубликовано: 29 авг 2024

Комментарии • 96

  • @webstylepress
    @webstylepress  3 года назад

    To watch more related videos, please LIKE, SHARE & SUBSCRIBE! WebStylePress needs your support.

  • @mistersir3185
    @mistersir3185 3 года назад +7

    Why that many dislikes? Do people have any clue how important the knowledge in this video is? This video alone made feel confident about react cuz I'm just starting... Thanks man

  • @johnbeniciotobias2550
    @johnbeniciotobias2550 Год назад +1

    Thank you so much for this video, I have already watched couple of videos about fetching data from internal JSON file , only in this video I fully understand and apply how I can display a json file , two thumbs up for this keep up !

  • @1382poseidon
    @1382poseidon 4 года назад +1

    A massive thank you from UK. Been losing my mind on this for a while now. Keep up the great work!

  • @user-fm9qs1hr4x
    @user-fm9qs1hr4x Год назад +1

    Thanks for lesson about mapping JSON data. It's very helpfull!

  • @pjalmeida8732
    @pjalmeida8732 4 года назад +3

    This literally helped me with a homework assignment tonight. Cheers! Thank you for the helpful tips and I hope you continue to make more videos.

  • @salsabilalailyrahma3251
    @salsabilalailyrahma3251 3 года назад +3

    Thank you sir. I can understand from your explanation. It's really helpfull to do my homework. From Indonesia

  • @universalvideos1071
    @universalvideos1071 2 года назад +1

    good man you save my day I just needed this simple video but wasted my time in other stuff.. Thanks for the information

  • @snehahanchate2529
    @snehahanchate2529 4 года назад +1

    U are really very great, its working , I did first time this , and its working, thank u soo much, i seen minimum 15 videos about api but i didn't understand api, but now in 11 min I learnt perfectly

  • @carbonfossile4219
    @carbonfossile4219 3 года назад +2

    Great tutor, easy to follow with nice easy example to understand how to parse and map in React.

  • @samuelesdras
    @samuelesdras 4 года назад +1

    Nice dude!!! I was looking exactly for this!! Thanks from Brazil!!!!!

  • @sathishkumar-wr3dg
    @sathishkumar-wr3dg 3 года назад +2

    Thanks a lot! It's useful for beginners...Plz, Keep posting your videos.

  • @asifmahmood9358
    @asifmahmood9358 4 года назад +3

    man u save me fo lossing thanks alot

  • @monikasinghgurjar5433
    @monikasinghgurjar5433 3 года назад +1

    Thank you very much seriously I've seen alot videos but this is what I needed 👍👍👍

  • @themightymerdo
    @themightymerdo 3 года назад +1

    My advice on this video is to put the speed to 1.25, besides that, great video :D

  • @djayrok91
    @djayrok91 2 года назад +1

    Just wanna say thanks alot from bottom of hearts u r amazing tutor 👑

  • @user-qo5xr5gk5y
    @user-qo5xr5gk5y 2 года назад +1

    Thank you! You saved me!

    • @webstylepress
      @webstylepress  2 года назад

      Plz give the video a like and subscribe to channel. It will help the channel.

  • @sumitmahanta7961
    @sumitmahanta7961 2 года назад +1

    Awesome 🤩🤩

  • @berrieberrie1555
    @berrieberrie1555 2 года назад +1

    thank you so much! 😭

  • @melonter9865
    @melonter9865 2 года назад +1

    great tutorial

  • @vladanulardzic5859
    @vladanulardzic5859 3 года назад +1

    Clear and nice explanation. Thank you.

  • @vasilgarbov4698
    @vasilgarbov4698 3 года назад +1

    Great job mate! You really helped me and i appreciate it! Good luck.

  • @maniafranzio3023
    @maniafranzio3023 3 года назад +1

    Thanks alot!! Nanbaa *From TamilNadu*

  • @mrigeshthakur
    @mrigeshthakur 2 года назад +1

    Thank you very muchhhhh

  • @shivashankarsharma7381
    @shivashankarsharma7381 3 года назад +1

    Thankuuuuuu so much for the video.I literally got stucked in this.This really helped me a lot

  • @badbeaver7476
    @badbeaver7476 3 года назад +1

    Really informative and easy to understand video. Thank you!

  • @camilamedeiros2867
    @camilamedeiros2867 3 года назад +1

    Thank you very much! Helped a lot 👏🏻👏🏻

  • @hmalintsyan6360
    @hmalintsyan6360 4 года назад +1

    Thanks from Armenia!!!!

  • @abraradnan854
    @abraradnan854 3 года назад +1

    useful tutorial, thank you

  • @dnogitsune9286
    @dnogitsune9286 2 года назад +2

    Thank you so much. I found your video after I figured out a problem like this myself after mulling it over in my head all day. You simplified it. I do have a question though, what if there is another array of data nested inside that you need to access. As in each object had a nested array of objects in it as well. Do you do the same thing and just add the index to the map method?

  • @natnar2218
    @natnar2218 3 года назад +1

    Graciasssssss, me sirvió mucho.

  • @olivergre1054
    @olivergre1054 3 года назад +1

    Thank you very much!

    • @neelamravindran1651
      @neelamravindran1651 3 года назад

      Can you tell me how to run this proh

    • @webstylepress
      @webstylepress  2 года назад

      you should have nodeJS installed in system.
      - then install packages:
      npm install
      - and run the app:
      npm start

  • @ahmedpatel408
    @ahmedpatel408 2 года назад +1

    TY

  • @viditkumarjain7079
    @viditkumarjain7079 3 года назад +1

    thank you sir

  • @kumarshubham919
    @kumarshubham919 3 года назад +1

    Great Video....

  • @mustafasavul
    @mustafasavul 3 года назад

    Thanks, simple and useful

  • @afxcrush41
    @afxcrush41 2 года назад +1

    Play it at x1.5 speed and sounds normal

  • @rahulanand7321
    @rahulanand7321 2 года назад +1

    watch in 1.25x

  • @yangerrai1605
    @yangerrai1605 3 года назад +1

    Practical

  • @talhakhan3010
    @talhakhan3010 2 года назад

    I am beginner so plz bear with my question .. Why we need to add "Key" in instead of map line? the key is the index in my understanding and it should be with mapping control instead of html element?

    • @webstylepress
      @webstylepress  2 года назад

      Key is identifier. ReactJS forces us to use key so that we can target any element in the loop if we need to. It's just an identifier. It's a must if we want to map elements. For example, if you need to get an element or delete an element (single element), you need an identifier to do that, right?

  • @kishanthkumar8698
    @kishanthkumar8698 2 года назад +1

    sir how can we get individual id detail in key? like to print only id 1 details rather than printing all
    ????

  • @mistersir3185
    @mistersir3185 3 года назад +2

    Recommended speed 1.5x :)

  • @growonline8262
    @growonline8262 4 года назад +1

    So how should I access an object containing child elements like marks is an object and it consisting of several subject marks so how could I access them ??

    • @webstylepress
      @webstylepress  4 года назад

      Marks.math marks.physics marks.something

    • @growonline8262
      @growonline8262 4 года назад

      @@webstylepressno not like that I have an object with keys and value and this value itself an object again so the object key is "marks" and values are maths:10,physics:20,English:30. So how should I access them now..

  • @sangeetakol1197
    @sangeetakol1197 3 года назад

    Thanks sir

  • @Soc-Analyst-Security
    @Soc-Analyst-Security 3 года назад +1

    GREAT !!! thank a lot, How can it works using hooks?

    • @webstylepress
      @webstylepress  3 года назад

      We are not using useState or useEffect here so no need for hooks in this case. Data from json file is directly used. If we need to store data in state and manipulate data, then we need hooks.

  • @pearinnovation1419
    @pearinnovation1419 2 года назад

    how can we limit the elements to perticular number in display

    • @webstylepress
      @webstylepress  2 года назад +1

      Use slice.
      data.slice(0, 5).map() ...

  • @tatvascriptoptim767
    @tatvascriptoptim767 2 года назад

    can I put different style in json file then fetch it to another js file file using map? if yes then please explain it

  • @luxgroove480
    @luxgroove480 3 года назад

    if you add images into the object how to output it? images do not display

    • @webstylepress
      @webstylepress  3 года назад

      You can use image path in json file. Then use img tag in JSX to display image.

  • @abhinav.sharma
    @abhinav.sharma 4 года назад +1

    Hey man! Thanks a ton.
    How can I perform CRUD operations on that local JSON file???
    Given that you're already Reading the file, what about Creating more posts, updating and deleting them...
    I know you can create an API using express or something and expose that JSON file through an API, but need to make it client side.

    • @webstylepress
      @webstylepress  3 года назад +1

      With only react js it's not possible. You can get records from json file in state and then manipulate state. State will reflect updated data. But to modify json file, you need node js and express. You will post updated data from react to an end point. That api end point will take new data and will update json file. I will share this tutorial, hopefully this week.

    • @abhinav.sharma
      @abhinav.sharma 3 года назад

      Thanks for the reply man!
      Surely would check that out!!!

    • @webstylepress
      @webstylepress  3 года назад +1

      There you go
      ruclips.net/video/lFkBk3f6Xww/видео.html

    • @abhinav.sharma
      @abhinav.sharma 3 года назад

      ​@@webstylepress Hey man, thanks a ton, I will check that out.
      My use case was to use ReactJS with Electron, and at that time I didn't know how to do it.
      I learned IPC in Electron and how to use it in the Renderer process, so I did that and my use case was solved.
      But I still wanted to know the answer to that question. Thank you for making a video on it and your awesome response! 💗

  • @AmanGupta-fv6wu
    @AmanGupta-fv6wu 2 года назад

    How to call nested json object in this please help me out

    • @webstylepress
      @webstylepress  2 года назад

      Please see description. There are related tutorial links about JSON and React JS. I have covered nested JSON object in those tutorials.

  • @mamathapondara6051
    @mamathapondara6051 2 года назад

    Hi.. Please use icons in .json, i tried but its not working..plz help me in this

    • @webstylepress
      @webstylepress  2 года назад

      There you go: ruclips.net/video/NWG1Ygt1k1k/видео.html
      Display Icons / Images from JSON File in React JS

  • @justforfun8067
    @justforfun8067 4 года назад

    Hey massive thanks to you,
    But Recently I have came across an issue while using Image paths inside the JSON file,
    Its throwing "image/path" module not found.

    • @webstylepress
      @webstylepress  4 года назад

      You will have to require images including path

  • @navyabt7964
    @navyabt7964 2 года назад

    hello sir can u please teach d process to use nested json in react

  • @life_with_yolanda
    @life_with_yolanda 4 года назад +1

    Module not found: Can't resolve './data/datav.json' in 'C:\Users am actually getting this error. I like your video by the way. Do you how i can solve it?

    • @life_with_yolanda
      @life_with_yolanda 4 года назад +2

      I sorted it out. I move the file out of the folder, to the same folder as the component. THANK YOU!

  • @soumyajitmohapatra1219
    @soumyajitmohapatra1219 3 года назад

    How to use hyperlink/url ?

  • @xXHelsingGamingXx
    @xXHelsingGamingXx 2 года назад

    So would this mean, that the s3 static file hosted could be consumed by our react app?

  • @westfield90
    @westfield90 4 года назад

    Suppose I have json data with first name and last name. But for one record the last name missing I get an undefined error. How do I get around this?

    • @webstylepress
      @webstylepress  4 года назад

      Simple check if data not null then display in react

  • @timingvithurun7643
    @timingvithurun7643 3 года назад

    hey ...can this JSON be used for huge data and making the webpage dynamic?

    • @webstylepress
      @webstylepress  3 года назад

      U can use multiple json files to store different types of data and load relevant records.

  • @abelrodriguez5926
    @abelrodriguez5926 2 года назад

    How do you display information from only 1 specific id?

    • @webstylepress
      @webstylepress  2 года назад

      In that case dont use map method. I ve already shared a video on this.

    • @abelrodriguez5926
      @abelrodriguez5926 2 года назад

      @@webstylepress can you please send me the link to that video?

  • @luqmanulhakim4834
    @luqmanulhakim4834 3 года назад

    what if we have 2 json files? how to call them?

  • @steven7936
    @steven7936 2 года назад

    Why do these people always show hard coded examles for? Ive never seen a tutorial video where they get data from an external API

    • @webstylepress
      @webstylepress  2 года назад

      Because dealing with local data is fast and quick for the tutorial. It can also be implemented by beginners in their work quickly. Using external APIs can confuse beginners.

  • @PikaPoltron
    @PikaPoltron 3 года назад

    how do i get access just to the first item and not all of them? really like ur video too :D

  • @sparveen3061
    @sparveen3061 2 года назад

    Why it is showing error?

  • @mondo1926
    @mondo1926 2 года назад +1

    Double speed...thank me later ;)