React js wala state eka wenas wenakota page eka refresh wenna hadanne kohomada ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
oka javascript walinuth pluwan mamanam oka karanne html walin a href ekak aragena web page ekema copy ekaka nama ekata dala eka athule button ekak hadala ekatanamak danawa ethakota page eka refresh wenawa wage ara page ekatama yanawa
menna code eka
refresh
code eka type kalata pennanne na 😕
In JavaScript, you refresh the page using document. location. reload() . You can add the true keyword to force the reloaded page to come from the server (instead of cache).
That’s not needed because for every state change a re-render occurs behind the scene. And also the main task of React.Js is DOM Manipulation and we can only build SPA’s using. If you are doing data fetching like thing and want to make it real-time, then you can use either web sockets or setTimeOut function with a cleaner function.