Doing Advent of Code in SvelteKit. Is it possible to dynamically import components?

This page summarizes the projects mentioned and recommended in the original post on /r/sveltejs

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

    Advent of Code solutions (2018/2019/2020) (learning Haskell) (by ric2b)

  • Does anyone know of a better way to do this? I'm already maintaining this file with the titles of each problem, maybe there's a way to dynamically import and render all the DayXX components based on the length of that list? Or maybe to use the page slug to import just the correct component and render it? But that would probably run into this issue when navigating to other problems.

  • Advent-of-Code-2021

    Solutions for Advent of Code 2021 (by agubelu)

  • So this year I'm solving Advent of Code in SvelteKit.

  • 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
  • SvelteKit

    web development, streamlined (by sveltejs)

  • Does anyone know of a better way to do this? I'm already maintaining this file with the titles of each problem, maybe there's a way to dynamically import and render all the DayXX components based on the length of that list? Or maybe to use the page slug to import just the correct component and render it? But that would probably run into this issue when navigating to other problems.

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