GithubHelp home page GithubHelp logo

devlargs / twicepolls Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 19.45 MB

Voting web app for Twice Fans a.k.a. onces created using firebase, next and tailwind

Home Page: https://twicepolls.vercel.app

TypeScript 96.40% CSS 1.81% JavaScript 1.79%
firebase firestore nextjs vercel google-analytics tawk tailwindcss tailwind hacktoberfest

twicepolls's Introduction

Twice Polls

Description

Unofficial Fan voting app for twice fans aka onces

Integrations

Deepscan

DeepScan grade

Codefactor

CodeFactor

twicepolls's People

Contributors

code-factor avatar devlargs avatar imgbotapp avatar

Stargazers

 avatar

Watchers

 avatar  avatar

twicepolls's Issues

Add sentry script for monitoring

To instrument your React application with Sentry, first install the @sentry/react and @sentry/tracing packages:

# Using npm
npm install --save @sentry/react @sentry/tracing

Next, import and initialize the Sentry module as early as possible, before initializing React:

import React from "react";
import ReactDOM from "react-dom";
import * as Sentry from "@sentry/react";
import { Integrations } from "@sentry/tracing";
import App from "./App";

Sentry.init({
  dsn: "https://[email protected]/5601980",
  autoSessionTracking: true,
  integrations: [
    new Integrations.BrowserTracing(),
  ],

  // We recommend adjusting this value in production, or using tracesSampler
  // for finer control
  tracesSampleRate: 1.0,
});

ReactDOM.render(<App />, document.getElementById("root"));

// Can also use with React Concurrent Mode
// ReactDOM.createRoot(document.getElementById('root')).render(<App />);

The above configuration captures both error and performance data. To reduce the volume of performance data captured, change tracesSampleRate to a value between 0 and 1.

After this step, Sentry will report any uncaught exceptions triggered by your application.

You can trigger your first event from your development environment by raising an exception somewhere within your application. An example of this would be rendering a button whose onClick handler attempts to invoke a method that does not exist:

return <button onClick={methodDoesNotExist}>Break the world</button>;

Once you've verified the library is initialized properly and sent a test event, consider visiting our complete React docs. There you'll find additional instructions for surfacing valuable context from React error boundaries, React Router, Redux, and more.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.