This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Page.js */ | |
import React, { useEffect, useState } from "react"; | |
const Page = props => { | |
const [images, setImages] = useState({}); | |
const [imagesReadyCnt, setImagesReadyCnt] = useState(0); // counter of preloaded images | |
useEffect(() => { | |
const importedImages = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
export const Recipeitem = (props) => { | |
return (<div> | |
{props.title} | |
</div>) | |
} |