help with server actions
Unanswered
Plott Hound posted this in #help-forum
Plott HoundOP
I have a simple page.tsx that fetches data from google maps, I pass it some variables eg range, lat, lng all in the same server component, then it renders the map with markers in a client component. I’ve added a form in a sidebar component so I can update these variables and in turn update the map, is this a good use for server actions? If so should I define the server action in the main page.tsx or in a separate file and import it?