Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update @lume/element #2

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function SomeComponent() {
}
```

### With React JSX
### With React/Preact JSX

To get type checking in React JSX templates, import the React JSX types
directly, as they will not be automatic like JSX type for Solid.js. This is
Expand All @@ -130,7 +130,9 @@ global JSX types for non-React users, we do not automatically register them
```tsx
import {useState, useRef, useEffect} from 'react'
import 'code-mirror-el'
import type {} from 'code-mirror-el/src/CodeMirror.react-jsx' // Import types specifically for React
// Import JSX types specifically for React (or Preact with React compat enabled in
// your tsconfig).
import type {} from 'code-mirror-el/src/CodeMirror.react-jsx'

function SomeComponent() {
const [content, setContent] = useState('...')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@codemirror/language": "^6.0.0",
"@codemirror/state": "^6.0.0",
"@codemirror/view": "^6.0.0",
"@lume/element": "^0.13.0",
"@lume/element": "^0.14.0",
"@uiw/codemirror-theme-noctis-lilac": "^4.0.0",
"classy-solid": "^0.3.0",
"codemirror": "^6.0.0",
Expand Down
Loading