Error handling for production application in Preact

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

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.io
featured
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.
www.influxdata.com
featured
  • Sentry

    Developer-first error tracking and performance monitoring

  • import { render, Fragment } from "preact"; import { useErrorBoundary, useEffect } from "preact/hooks"; const MaybeText = ({ children }) => { if (Math.random() > 0.5) { return children; } throw new Error("Unable to display the text."); }; const Main = () => { const [error, resetError] = useErrorBoundary(); useEffect(() => { if (error) { fetch("https://sentry.io", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ message: error.message }) }); } }, [error]); if (error) { return (

    Errorh1>

    An error occurred.p> Reason: {error.message}small> Try againbutton> Fragment> ); } return (

    Mainh1>

    This is the main component.p> Maybe this will be printed?MaybeText> Fragment> ); }; const root = document.getElementById("root"); if (root) { render(

    , root); }

  • React

    The library for web and native user interfaces.

  • Preact is a great alternative to React. It is made for creating modern Web Application and weights a ton less than a React application.

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

    ⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.

  • Preact is a great alternative to React. It is made for creating modern Web Application and weights a ton less than a React application.

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

  • [Part 2] A proactive approach to handling application errors

    3 projects | dev.to | 11 Oct 2021
  • Implementing 3D Graphics in React

    6 projects | dev.to | 3 May 2024
  • "Kawaii" tech logos by Sawaratsuki

    3 projects | news.ycombinator.com | 27 Apr 2024
  • React 18.3.0 Is Out

    2 projects | news.ycombinator.com | 25 Apr 2024
  • Preact vs React: A Comparative Guide

    2 projects | dev.to | 23 Apr 2024