Using React to visualize the knapsack algorithm

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • react-syntax-highlighter

    syntax highlighting component for react with prismjs or highlightjs ast using inline styles

  • react-syntax-highlighter I used this to highlight code segments when the app steps through the code.

  • Tailwind CSS

    A utility-first CSS framework for rapid UI development.

  • Tailwind CSS To get started I followed the tutorials on the Tailwinds YouTube channel. The documentation and online playground were also helpful. I used the Hero Icons project to find and add icons to my project. Overall, I liked Tailwind CSS, but it felt verbose to apply styles in the HTML rather than in a separate CSS file. The developer addressed the issue of separation of concerns in his blog post CSS Utility Classes and "Separation of Concerns". I did define custom classes for styles used in multiple places.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • react-embed-gist

    Simple react component which can embed gist in your react application

  • react-embed-gist I used this to display the complete algorithm at the end. I used this rather than react-syntax-highlighter because gist has better copy support. If someone wants to copy the algorithm, it is easier for them to do so with the gist. The downside is it performs a network call to get the gist. I am not sure if this was the right approach.

  • react-hook-form

    📋 React Hooks for form state management and validation (Web + React Native)

  • React Hook Form I initially wrote my own form validation. That was the wrong approach. I found React Hook Form, which made form validation much easier. It also allowed me to use dynamically-generated fields. This allowed me to add, edit and delete items on the initial setup screen. I would recommend investigating this tool if your app uses forms.

  • pages-gem

    A simple Ruby Gem to bootstrap dependencies for setting up and maintaining a local Jekyll environment in sync with GitHub Pages

  • GitHub Pages I use this to host the app. My blog is already hosted on GitHub Pages, so it seemed a natural place to host it. I use a GitHub workflow to deploy the site.

  • heroicons

    A set of free MIT-licensed high-quality SVG icons for UI development.

  • I used the Hero Icons project to find and add icons to my project.

  • create-react-app

    Set up a modern web app by running one command.

  • Create React App I chose Create React App (CRA) because I was creating a new, standalone React App. This was my first time using CRA, as the tutorials only used React in an index.html file.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts