New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hydroxide-jsx

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hydroxide-jsx

JSX type definitions for hydroxide framework

  • 0.9.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
11
decreased by-35.29%
Maintainers
1
Weekly downloads
 
Created
Source

hydroxide-jsx

Type Definitions for Hydroxide's JSX

It contains Type Definitions for all HTML and SVG elements


Type Definitions

Attribute names are the same as HTML spec.

( They should not be camel-cased like how it is done in React )

This allows you to quickly copy any valid HTML and directly use it as JSX

( but you will need to self-close the void elements in JSX - <input> to <input /> - as that is required by JSX spec )


Attributes

'autoPlay' //  React
'autoplay' // HTML, Hydroxide

Event Handlers

Event Handlers have the on- prefix with event names being the same as browser event names.

They are not camel-cased like React to be consistent with browser event names.

'onClick' // React
'on-click' // Hydroxide

Special Attributes

These attributes are not part of HTML spec, instead, they have a special meaning in Hydroxide.

// creating reference to a DOM element
'ref'

// conditional rendering
'if'
'else'
'elseIf'

// two way binding
'bind-value'
'bind-checked'

FAQs

Package last updated on 29 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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