DEV Community

Cover image for Reddit Live Feed
Michael Cook
Michael Cook

Posted on

Reddit Live Feed

What is it?

Reddit posts, live, as they happen, right now, in your face!

A React based site that loads all Reddit posts as soon as they're made.

Reddit Live Feed
Source

Why?

Building Super Simple™ (at first) projects like this is always a good way to improve React knowledge, plus I love the concept of seeing the entirety of Reddit sluicing in.

Ingredients

*React JS

Source

Source

All Reddit posts are actually available as .json files such as this, which I check every now and then in order to update the list of posts. It takes advantage of React by having the posts data stored in the components as state variables, which allows everything to automatically update on the page - for example the timestamp information (2 seconds ago, 3 seconds ago, etc).

Top comments (0)