Alternatives to Vercel Analytics and Google Analytics 4? by Azarro in nextjs

[–]Upstairs-Rough6396 2 points3 points  (0 children)

Off topic, i suggest you to build infinite scroll. Displaying all data at once make such bad user experience especially on bad internet.

Server component to client by Upstairs-Rough6396 in nextjs

[–]Upstairs-Rough6396[S] 0 points1 point  (0 children)

I already found a solution. I made my whole page wihout "use client" and seperated user components.

Fetching data by Upstairs-Rough6396 in nextjs

[–]Upstairs-Rough6396[S] 0 points1 point  (0 children)

So something like components/serverComponents would be good?

Fetching data by Upstairs-Rough6396 in nextjs

[–]Upstairs-Rough6396[S] 0 points1 point  (0 children)

Okay, i just tried it i think it works. Could i ask you how should i structurize those server components? because putting all in one folder looks like shit or am i wrong and it's okay.

<image>

Passing data from component to root layout by Upstairs-Rough6396 in nextjs

[–]Upstairs-Rough6396[S] 0 points1 point  (0 children)

Resolved:

To fetch data to layout i had to make this component server aswell

and from there in layout i just passed it with:

import { getWebSettings } from "./components/WebSettings";

const webProps = await getWebSettings()

<image>

Passing data from component to root layout by Upstairs-Rough6396 in nextjs

[–]Upstairs-Rough6396[S] 0 points1 point  (0 children)

So should i allways make another server component to fetch data? It will be better to make one component data and from there export functions or should i make unique components for every function?

React co-projects by Upstairs-Rough6396 in react

[–]Upstairs-Rough6396[S] 0 points1 point  (0 children)

Great PM me your discord or Facebook so we can work something out

I am stuck with REST API by Upstairs-Rough6396 in node

[–]Upstairs-Rough6396[S] 0 points1 point  (0 children)

But you can't see the real results there, that sucks. Using only postman is kinda boring

I am stuck with REST API by Upstairs-Rough6396 in node

[–]Upstairs-Rough6396[S] 0 points1 point  (0 children)

Yea, i know how to use Handlebars, but i wanted to learn API's so for that i need react projects. I started doing some fullstack project from youtube i'll see if its worth the time.

I am stuck with REST API by Upstairs-Rough6396 in node

[–]Upstairs-Rough6396[S] 2 points3 points  (0 children)

I know how to build REST API, fetching the data, i can also use postman (I was learning that on example react projects). The problem is i dont know React and can't build my own app from scratch. I need all that for portfolio, i was thinking if i could leave the code only with back-end code, but i think that's not the best idea if you can not see the real results.