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

react-html-props

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-html-props - npm Package Compare versions

Comparing version 1.0.23 to 1.0.24

2

package.json
{
"name": "react-html-props",
"version": "1.0.23",
"version": "1.0.24",
"author": "Justin Mahar <contact@justinmahar.com>",

@@ -5,0 +5,0 @@ "description": "Convenient TypeScript types for all React HTML props.",

@@ -60,2 +60,14 @@ <h2 align="center">

You can then use all props supported by `div` in your own component:
```tsx
<MyComponent
className="text-center"
style={{ background: 'blue', color: 'white' }}
onClick={() => console.log('Get schwifty!')}
>
Show me what you got
</MyComponent>
```
## Unpacking Attributes

@@ -75,14 +87,2 @@

You can then use all props supported by `div` in your own component:
```tsx
<MyComponent
className="text-center"
style={{ background: 'blue', color: 'white' }}
onClick={() => console.log('Get schwifty!')}
>
Show me what you got
</MyComponent>
```
## Mixing With Custom Props

@@ -89,0 +89,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