ReactJS SDK
1 . Installation & Setup
1. Install AllStak SDK
npm install @techsea/allstak-reactjsyarn add @techsea/allstak-reactjs2. Import & Initialize AllStak
import React from "react";
import ReactDOM from "react-dom/client";
import { AllStakErrorBoundary, initAllStak } from "@techsea/allstak-reactjs";
import App from "./App";
// AllStak Configuration
const config = {
apiKey: "your_api_key",
environment: "production",
};
// Initialize AllStak globally
initAllStak(config);
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
{/* Wrap your entire application with the AllStak Error Boundary */}
<AllStakErrorBoundary>
<App />
</AllStakErrorBoundary>
</React.StrictMode>
);3. Handling Errors in Components
Last updated