Nick Jantz

  • Using Redux to Manage State in a Vanilla JS Application

    Sample of getting redux working with in vanilla javascript. This can be used to better manage state within a page that uses D3 to vizualize data. Hopefully it can help reduce the amount of data stored client side for potentially slower computers. However this might have the drawback of having to fetch data multiple times if a user wants to see older graphs again and that data has been deleted.

    This example was pulled from codepen

    I am fairly familiar with Redux and that's why I'm using it here. It does feel like it may be a solution to a non problem. Perhaps something like this might be a little better. Potentially adding some sort of state key:value to D3 itself like in that blog may work as well.