Sentry.init({ dsn: '你的Sentry DSN地址', // Setting this option to true will send default PII data to Sentry. // For example, automatic IP address collection on events sendDefaultPii: true, });
functionErrorButton() { return ( <button onClick={() => { throw new Error('This is your first error!'); }} > Break the world </button> ); } exportdefaultErrorButton;