need help understanding state

need help understanding state

so i was reading react.dev's state explanation

when react rerenders due to set function local variable wont be able to maintain its value since it rerenders everything but in its clock or time example where you can input a value on a input element it says that it chooses what to rerender and the value stays intact while the clock is running .
im also assuming that its using a set function to update the clock.

can anyone explain why this is?

edit heres the link to the clock example
https://react.dev/learn/render-and-commit#step-3-react-commits-changes-to-the-dom

u/techlover1010 — 1 day ago

need clarification on state

so i was reading react.dev's state explanation

when react rerenders due to set function local variable wont be able to maintain its value since it rerenders everything but in its clock or time example where you can input a value on a input element it says that it chooses what to rerender and the value stays intact while the clock is running .
im also assuming that its using a set function to update the clock.

can anyone explain why this is?

reddit.com
u/techlover1010 — 1 day ago
▲ 0 r/git

need advice on these situation

im using github as my online repo

  1. how do i share my work which i created a branch to another person to check. do i push my work so that he can do a pull or do i need to create a fork then apply my changes there then give him the link?
  2. how do i revert back my changes ? do i just use checkout and checkout previous version or a reset --hard? is it much better to create a branch do my changes then just deleting the branch if it doesnt work?
reddit.com
u/techlover1010 — 3 days ago

need advice on an offline knowledge base

so i want to document all the things i had issues and my journey to the solution. whats the best tools (hopefully open sourced or self hosted) or workflow do you guys recommend.

reddit.com
u/techlover1010 — 3 days ago

need advice on how to power down a nuc

so my nuc is running debian bullseye without monitor with a nuc celeron processor and was wondering if theres a way to configure debian to safely shutdown the device with one push of a power button.
currently we had to power down using long press of the power button and im scared that it just cuts off power and not a really safe way to shutdown

reddit.com
u/techlover1010 — 8 days ago

question about selecting elements using query selector

https://en.wikipedia.org/wiki/Category:Boulevards_in_Paris
so im doing the query selecting on the console browser on the link above to get all the name of the boulevards list
my question is when i do
let var1 = document.querySelector(".mw-content-ltr")
and then do
let var2 =var1.querySelectorAll("li") and then do console.log(var2) it shows length 0

so when i redid and went down one tier
let var1 =document.querySelector(".mw-category")
let var2=var1.querySelectorAll("a")
now this time it works. i was able yo get all the bouldevards name

can anyone explain to me what happened

reddit.com
u/techlover1010 — 11 days ago

question to people that own y700 and docking it

i own a y700 gen3 and have acoupla question
how do you turn off display on the tablet?
how do you use your tv and portable monitor and speakers audio instead of teh tablet?
whats the best way to navigate ? is it through a front end? i tried navigating with just the default launcher and it sometimes doesnt register the button press like if yoir emulator is inside a group(dont know what it is officially called)

reddit.com
u/techlover1010 — 19 days ago

question about y700 displaying on a tv

im using skull co dock to output to a tv and it works but with minor issue like sound wont play on the tv, display on the tablet wont turn off, and on screen keyboard wont pop up . i need the on screen keyboard since im using a mouse only
are there any solutions?

reddit.com
u/techlover1010 — 19 days ago

need help how to use via browser app

so i sued usevia site and it did connect to my keyboard c3 pro 8k but it didnt show me the place where i can change my keys or something just a happy face. when clicking on the stethoscope i can type and see keys light up

what am i doing wrong?
sorry this is first time doing the via thing

https://imgur.com/a/using-via-webapp-btVYcQq

u/techlover1010 — 24 days ago

library project need advice on adding modal or dialog

whats the difference between the two and which one is more popular.
i checked the link to mozilla and was wondering if theres an easier site with examples or easy to follow guides on how to create one. i cant remember if theodinproject had a guide on this and if not was wondering why they dont include one

reddit.com
u/techlover1010 — 30 days ago

cant communicate with my pc

so i have one pc running win 11 it can connect to internet and it can also ping my other devices pc and smartphone but when i try to ping it using my other device like smartphoe using termux its just stuck at PING 192.168.xxx.xxx (192.168.xxx.xxx) 56(84) bytes of data.
i can ping other device just fine using that same smartphone

--edit--
tried enabling file and printer sharing option still the ping is stuck
tried tried enabling the core networking diagnostic icmp echo for both icmpv4 and icmpv6 still same issue
i enabled logs to log drop connection and saw it did drop connection. one from my device and another from my modem/router (the device that my isp gave me)
when i tried to disable the windows defender firewall my other devices is able receives a response when they ping
will disabling windows defender firewall be bad for me?

reddit.com
u/techlover1010 — 1 month ago
▲ 1 r/foss

need recommendation for issue tracking tool

so i need recommendation for issue tracking tool similar to github. i want to use it for personal life and home stuff

reddit.com
u/techlover1010 — 1 month ago

need someone to explain the assignment on object basic array

so on one of the assignment i dont understand the solution for "Create keyed object from array"
how does reduce able to form an object. all i understood from reduce is that it sums up everything and outputs one value.
also how do you output the object on console so i can check what value each one outputs? i tried doing console.out(obj) but there were additional objects (?) being shown
{}
anna
john
peter
{john}
anna
john
peter
sorry im not at my pc right now and this si the best i can remember

reddit.com
u/techlover1010 — 2 months ago

question about y700 accesories

im using y700 gen 3

what dock or other tool is safe to use that can do bypass charging and do hdmi out to a tv

does using a peltier cooler damage the tablet like i read condensation can go into stuff.

reddit.com
u/techlover1010 — 2 months ago
▲ 1 r/minipc

question about updating my gmktec g5 win 11

so im still at my (im assuming) base win 11 version with mo update and was wondering if i should be updating this. reason i ask was that i kind of remember reading that when someone updated thiers they had all sort of issues.

just in case the answer is dont update how do you not update win 11 but still able to access internet.

reddit.com
u/techlover1010 — 2 months ago

question about using a laptop charger to charge my tablet or phone

so i have a lenovo t480s using a lenovo 45w charger model: ADLX45YCC3G

can i use this to charge my my phone(poco f3, item p55 5g, galaxy tablet s6 lite) or will this harm it more?

what details or specs should i be looking out for to make it safe to charge?

reddit.com
u/techlover1010 — 2 months ago

need help on etchasketch

so im at that part and want to know how i can add items on the second row. they all just clump together on the first row.
is there a way to limit the amount of item a row has?

reddit.com
u/techlover1010 — 2 months ago
▲ 2 r/minipc

need advice before buying a gmktec k8 plus

is this minipc enough to play most japanese made games from fromsoft, squareenix, bandai namco and others
do i buy it barebones or should i buy one with ssd and ram already?
how much ram should i be getting
does usibg oculink for egpu wear out the port or cable much faster?

what are the risk of buying second hand ram and ssd

reddit.com
u/techlover1010 — 2 months ago

noob question about apollo and artemis

is apollo and artemis now the best way to stream?
for android to pc streaming using touch control is there a way to configure just to show some of the keys that i will pick rather than all of it. and also to position them on the screen and maybe also adjust the size?
i dont want the whole keyboard to be taking up all the screen estate as i just need some

reddit.com
u/techlover1010 — 2 months ago

y700 how to install apps from playstore

hi i have the y700 gen 3 and would like to ask if theres a way to install apps from aurora store?
i tried installing one app using aurora but it just download but wont install it.

reddit.com
u/techlover1010 — 2 months ago