I knowthatReactis a superpopularJavaScriptlibraryforbuildinguserinterfaces.
But I foundthiscoolframeworkcallednextJsNextJsis a lightweightframeworkforstaticandserverrenderedapplication.
Wedon't havetoworryaboutroutingmuchintheappisrenderedontheserverbydefaults, simpleclientsideroutingabletoimplementwithexpressoranyotherNoJshttpserverthemore I startedreadingaboutthis, themore I waslike, OhmyGod, thisisexactlywhat I waslookingfor.
Whensomebodytypes a linkonmywebsite, ifitstartswithslash a p I, wesendthemtothebackendserverviaand n Jinxproxypass.
Ifthelynxdoesnotstartwith a p, I R serverwillassumewewanttofetchthefrontendanditwillsendustothefrontandserverwhichwillrenderourhtmlviathenextdotJsframework.
Soit's It's thenextday.
I justfigured I shouldprobablycreatesomedrawingsforyouguyssoyoucanseewhat, Theahowitallcomestogether.