kindly help me solve this problem, my react app is not fetching the wordpress built in css not custom one, but made with elementor. it is only fetching the data through axios
i am making a react + wordpress website. I am fetching my data from wordpress through axios like this
import React, { useEffect, useState } from ‘react’;
import axios from ‘axios’;
const Posts = () => {
const [pages, setPages] = useState([]);
useEffect(() => {
let url = 'http://localhost/frontva/wp-json/wp/v2/pages';
axios.get(url).then((res) => {
setPages(res.data);
});
}, []);
console.log('pages', pages);
return (
<div >
{pages.map((page, index) => (
<div key={page.id}>
{index === 2 && (
<>
{/* <h1 className='text-5xl animate-bounce'>{page.title.rendered}</h1> */}
<p dangerouslySetInnerHTML={{ __html: page.content.rendered}}></p>
</>
)}
</div>
))}
</div>
);
};
export default Posts;
in this way my pages are rendering i have 3 pages and i am showing only at index 2 which is the homepage but my react app is only fetching the data it is not fetching the the elementor css like i have build the whole homepage through elementor and didnt use any custom css but when i am fetching the data it is not showing any css only the data is being fetched with no css no responsivness how do i make this issue resolve?
