Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

157
Views
Css not loading with pages in Reactjs

I am working with nextjs,I am trying to display "blog detail"(using slug), Whenever i move "[slug].js" inside "pages" folder then code is working fine but whenever i move this file to inside "blog"(inside page) folder then after refesh page "css" not loading, In other words whenever i move file to "folder" (inside page folder) then css not working after refresh page, I tried with following code

<Link href={`/${post.slug}`}>
    <a className="rdmre-btn"> Read More</a>
 </Link>

Here is my [slug.js]

import Axios from "axios";
import  {useRouter}  from "next/router";
import LatestBlogs from "../components/LatestBlogs/LatestBlogs";
import Link from 'next/link'
import { useEffect } from 'react'
import Header from '../components/Layout/Header'

const Post = ({ post }) => {

return (
        //my code
);
};
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!