Skip to content

Commit

Permalink
fix React is not defined error
Browse files Browse the repository at this point in the history
  • Loading branch information
localyost3000 committed Jun 20, 2024
1 parent 7c27aca commit d8994b7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions packages/manager/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ export const useScrollPos = createGlobalValueListenerHook(ScrollManager, 'scroll
_In some components_

```typescript
import React from 'react'

import { ScrollManagerProvider, useScrollPos } from '../managers/scrollManager'

export function App() {
Expand Down
2 changes: 1 addition & 1 deletion packages/manager/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tectonica/manager",
"version": "1.0.0",
"version": "1.0.1",
"module": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
"exports": {
Expand Down
3 changes: 2 additions & 1 deletion packages/manager/tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"module": "CommonJS",
"moduleResolution": "node",
"outDir": "dist/cjs",
"declarationDir": "dist/types"
"declarationDir": "dist/types",
"jsx": "react-jsx"
},
"include": ["src/"]
}
3 changes: 2 additions & 1 deletion packages/manager/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"declaration": false,
"module": "ES6",
"moduleResolution": "Bundler",
"outDir": "dist/esm"
"outDir": "dist/esm",
"jsx": "react-jsx"
},
"include": ["src/"]
}

0 comments on commit d8994b7

Please sign in to comment.