Reactjs – React Component Library – dispatcher is null useState upon running in React app
I am using vite, TS to created a react component library. My main.tsx in component-library contains the following test component, import React, { useState } from "react"; export const TestComponent = () => { console.log("CONTENT-TEST"); const [yamlTemplate, setYamlTemplate] = useState<string>("test…