Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsx-dom

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsx-dom - npm Package Compare versions

Comparing version 8.0.1-beta.4 to 8.0.1-beta.5

3

index.d.ts

@@ -1,1 +0,2 @@

export * from "./types/index.d";
export * from "./types/index.d";
export as namespace jsxDom;
{
"name": "jsx-dom",
"version": "8.0.1-beta.4",
"version": "8.0.1-beta.5",
"description": "JSX to document.createElement.",

@@ -15,3 +15,3 @@ "main": "index.js",

"dependencies": {
"csstype": "^3.0.9"
"csstype": "^3.0.10"
},

@@ -18,0 +18,0 @@ "eslintIgnore": [

@@ -21,3 +21,3 @@ # jsx-dom

**Note:** `jsx-dom` is ESM only. If you absolutely need CommonJS support, use `jsx-dom-cjs` instead.
`jsx-dom` is ESM only. If you need CommonJS support, install `jsx-dom-cjs` instead. These two packages only differ in module format.

@@ -294,10 +294,13 @@ **Note:** If you are using [React Automatic Runtime](https://babeljs.io/docs/en/babel-plugin-transform-react-jsx), simply set `jsxImportSource` to `jsx-dom` or `jsx-dom/min` and you can omit the import.

```ts
function preventDefault(event: Event): Event
// Returns the event object
export function preventDefault(event: Event): Event;
function stopPropagation(event: Event): Event
// Returns the event object
export function stopPropagation(event: Event): Event;
/** `namespaceURI` string for SVG Elements. */
const SVGNamespace: string
// `namespaceURI` string for SVG Elements.
export const SVGNamespace: string;
function className(value: any): string
// Convert a value into a className string. See docs above.
export function className(value: any): string;
```

@@ -308,3 +311,3 @@

/** Short type aliases for HTML elements */
namespace HTML {
export namespace HTML {
type Anchor = HTMLAnchorElement

@@ -317,3 +320,3 @@ type Button = HTMLButtonElement

/** Short type aliases for SVG elements */
namespace SVG {
export namespace SVG {
type Anchor = SVGAElement

@@ -337,8 +340,12 @@ type Animate = SVGAnimateElement

```ts
function memo<P, T extends (props: P) => JSX.Element>(render: T): T
function useMemo<T>(fn: () => T, deps: any[]): T
function useCallback<T extends Function>(fn: T, deps: any[]): T
// Returns `render` function
export function memo<P, T extends (props: P) => JSX.Element>(render: T): T;
// Returns `fn` function
export function useMemo<T>(fn: () => T, deps: any[]): T;
// Returns `fn` function
export function useCallback<T extends Function>(fn: T, deps: any[]): T;
const StrictMode: React.FC
class PureComponent {}
export const StrictMode: React.FC;
export class PureComponent {}
```

@@ -345,0 +352,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc