Meka react JS walin karanne kohomada?

wildboar

Well-known member
  • Nov 30, 2015
    1,665
    335
    83
    Wasgamuwa
    Items tika APi ekain map karala tiyenne.. eka item ekak click karama dakunu patthen eke details pennanna one.. React walin karana widiya karu hari kiyala denawada?
    1627386076864.png
     

    niyomax

    Well-known member
  • Sep 24, 2014
    5,157
    7,573
    113
    First get an idea about how SPA works.
    Learn the basics of React JS.
    Think that everything is a component.
     

    Anonymous_Abstract

    Well-known member
  • Aug 7, 2018
    4,898
    2,356
    113
    Messier 87
    simple vidiyata karanna puluwan

    ItemContext class ekak hada ganin with details in state

    item 1 ekadi ItemContext through item1 ekata hadala api call karanava. response eka ItemContext eka details ekata assign karagannava
    item 2 eka ekata hadala call eka
    ........................

    details eka detail component eka display kara simple
     

    uditha88

    Junior member
  • Jul 23, 2010
    23
    30
    13

    Angular nam Nevigation menu ekak dalara "router-outlet" ekak daal ekata load kalama wada
    React danne naha
     

    Software_Eng

    Well-known member
  • Dec 15, 2017
    805
    735
    93
    Igena ganna karana wedakda? Ube prasnen penne uba data pass karana heti danne na kiyala wediya.
    Mama kelinma uttare denne natuwa ubata yana path eka pennanm. Kenthi ganna epa. ehema kalama thamai ubata watinne.

    React data pass karana heti balanna. (React passing data between components.)
    React context API.
    Redux (Mekanm demma one na).

    Meka ubata set wenne nethnm just ignore it..
     
    • Like
    Reactions: supun_sg

    LakshanDev

    Junior member
  • Jun 27, 2021
    47
    80
    18
    Nugegoda
    Oka karanna one karanne dewal 3 i ->

    ContextApi file
    ItemsList Component
    SingleItem Component

    Oka tikak amaru widihata peene oke tiyena design ekata,nathnum oka amaru naha