addition to this
This commit is contained in:
@@ -17,6 +17,10 @@ const Main = ({ brdcum, bgimg }) => {
|
||||
}, []);
|
||||
|
||||
const getBlogData = async () => {
|
||||
/*
|
||||
The reason for this, is because of the breaking I had when building the blog
|
||||
I decided to save to the local storage for an hour so that it won't need to be going to the server again but I can change this
|
||||
*/
|
||||
// Saving it locally to avoid interfering with server
|
||||
if (localStorage.getItem("myFit--blogData") == null) {
|
||||
try {
|
||||
@@ -95,7 +99,7 @@ const Main = ({ brdcum, bgimg }) => {
|
||||
|
||||
<section className="row_am blog_list_main">
|
||||
{blogData.map((data, index) => {
|
||||
console.log(data)
|
||||
console.log(data);
|
||||
if (index == 0) {
|
||||
return (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user