react-component-instance
Version:
Get a React class component instance from its DOM Element
64 lines (63 loc) • 1.74 kB
JSON
{
"name": "react-component-instance",
"version": "0.0.125",
"description": "Get a React class component instance from its DOM Element",
"keywords": [
"react",
"class",
"component",
"instance"
],
"main": "./src/index.mjs",
"type": "module",
"types": "./index.d.mts",
"author": {
"name": "Jonathan Perry for Modern Poacher Limited",
"email": "jonathanperry@modernpoacher.com",
"url": "https://modernpoacher.com"
},
"license": "ISC",
"engines": {
"node": ">=18.12.0 <=21.7.3 || >=22.2.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/modernpoacher/react-component-instance.git"
},
"scripts": {
"lint": "eslint",
"lint:fix": "npm run lint -- --fix",
"prepare": "husky",
"test": "NODE_ENV=test jest"
},
"devDependencies": {
"@babel/core": "^7.28.5",
"@babel/eslint-parser": "^7.28.5",
"@babel/preset-env": "^7.28.5",
"@babel/preset-react": "^7.28.5",
"@sequencemedia/eslint-config-standard": "^0.2.103",
"@sequencemedia/eslint-config-typescript": "^0.1.176",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@types/debug": "^4.1.12",
"@types/jest": "^30.0.0",
"@types/react": "^19.2.2",
"@types/react-dom": "^19.2.2",
"core-js": "^3.46.0",
"eslint": "9.38.0",
"eslint-plugin-react": "^7.37.5",
"globals": "^16.5.0",
"husky": "^9.1.7",
"jest": "^30.2.0",
"jest-environment-jsdom": "^30.2.0",
"react": "^19.2.0",
"react-dom": "^19.2.0"
},
"imports": {
"#react-component-instance": "./src/index.mjs",
"#react-component-instance/utils": "./src/utils/index.mjs"
},
"exports": {
".": "./src/index.mjs"
}
}