Reddit Live Feed

28th Jun 2017

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 my React knowledge, plus I love the concept of seeing the entirety of Reddit sluicing in.

Ingredients

Method

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).