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

205
Views
Cómo recuperar contenido y su imagen de firebase usando react js

Logré enviar contenido e imagen y el nombre de la imagen también se agrega a la base de datos como referencia, y logré recuperar solo el contenido. si alguien me puede ayudar sera genial.

Como puede ver mi código Home.js a continuación

Inicio.js:

 function Home(isAuth) { const [postList, setPostList] = useState([]); const [imageUrl, setImageUrl] = useState(undefined); const postsCollectionRef = collection(db, "posts"); useEffect(() => { const getPosts = async () => { const data = await getDocs(postsCollectionRef); setPostList(data.docs.map((doc) => ({ ...doc.data(), id: doc.id }))); }; const getImage = async () => { const storage = getStorage() .ref('/' + `${post.cover}`) //name in storage in firebase console .getDownloadURL() .then((url) => { setImageUrl(url); }) } getPosts(); }) }
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!