SolidJSS
SolidJS14mo ago
61 replies
Jason.json

Server Side Fetching

Hi I want to fetch data from server side and render the title based on it's content like in PHP.

I want to execute the fetch request to api from server side because I want to render the page to client when fetch is ready.


Do someone could provide an example script?

    export default function MyFetch() { 
          // data fetching 
          return <Title>{data.title}</Title>
     }
   
Was this page helpful?