Can I keep this a server component?
Unanswered
Black Norwegian Elkhound posted this in #help-forum
Black Norwegian ElkhoundOP
I just started learning nextjs a few days and my biggest roadblock is server and client components so far, lets say I have 2 inputs in the main screen and a button that takes the 2 inputs and calculates something, I moved the button to a client component but the 2 inputs still use useState to get and send the inputs. do I put both the inputs with the button in the client component? and how do I get the result from the client component to display it else where in the main page?
4 Replies
Black Norwegian ElkhoundOP
how do I get the result back to the main server component? I want to display it elsewhere
Dwarf Hotot
Action things keep in client and non action keep in server the good way