
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
react-typescript-raw-html
Advanced tools
React component to render raw HTML without explicitly setting innerHTML property.
Simply:
import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { HTMLComponent } from 'react-raw-html';
const html = `
<div align="right">Text in div</div>
<span draggable="false">Text in span</span>
<a href="http://google.com/">Link to Google</a>
`;
const container = document.querySelector('#container');
ReactDOM.render(<HTMLComponent rawHTML={html}/>, container);
Because sometimes it is entirely correct to use the server-side rendering to generate pure HTML without any React at all (think Python libraries like Plotly or Bokeh, for example). But the output of these libraries, when used directly in React app, forces one to jump through hoops just to render it somehow with all those inline scripts, and even more - to render it correctly and efficiently. This package is intended to incapsulate these "hoops" inside it.
The approach is fairly simple:
<div>);Well, there were two main caveats:
<script> component, won't run automatically.Although, you shouldn't worry about these cases. I should.
It needs to be thoroughly tested, I can't guarantee this for now. And furthermore, there is no protection from arbitrary scripts execution yet - it will be added in the stable version.
FAQs
React component to render raw HTML without explicitly setting innerHTML property.
The npm package react-typescript-raw-html receives a total of 32 weekly downloads. As such, react-typescript-raw-html popularity was classified as not popular.
We found that react-typescript-raw-html demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.