Digital Tools
Sep 7, 2018 · 1 min read

hola Simon,

React puede utilizar la funcionalidad base de javascript: fetch

el getPosts() lo llamaría así: fetch(BASE_URL).then(response => response.json());

y en Post.js: getPosts().then((data) => { this.setState({ posts: data, …

¿qué opinas?

Digital Tools

Written by

Iniciativas y Herramientas Digitales, Apps, OpenData, Movimiento Maker, E-commerce, toque geek, actualidad e historia de las top tech

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade