
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
react-any-data
Advanced tools
React component as viewer and editor for general data type.
Inspired from s-data; works best with use-state-proxy.
Demo: https://react-any-data-demo.surge.sh/
## using npm
npm install react-any-data
## or using yarn
yarn add react-any-data
## or using pnpm
pnpm install react-any-data
export type DataProps = {
name: PropertyKey;
state: object & any;
onChange?: (() => void);
readOnly?: boolean;
sort?: boolean; // for Map and Set
};
export default function Data(props: DataProps): JSX.Element;
@testing-library/jest-domimport React from 'react';
import Data from 'react-any-data';
import {
registerMutableMethodsByClassConstructor,
useStateProxy,
} from 'use-state-proxy';
import './DemoNestedState.scss';
class Counter {
value = 0;
inc(amount = 1) {
this.value += amount;
}
dec(amount = 1) {
this.value -= amount;
}
}
registerMutableMethodsByClassConstructor(Counter, ['inc', 'dec']);
function Example() {
const state = useStateProxy({
id: 1,
name: 'Alice',
date: new Date(),
toggle: true,
friends: [
{ id: 2, name: 'Bob', tags: ['typescript'] },
{ id: 3, name: 'Cherry', tags: ['react'] },
],
tags: new Set(['stencil', 'proxy']),
map: new Map([
[1, 'one'],
[2, 'two'],
]),
counter: new Counter(),
});
console.log(unProxy(state)) // print during each re-render
return (
<>
<h1>Demo Nested State</h1>
<div style={{ display: 'flex' }}>
<code>
{JSON.stringify(
{
state,
setEntries: Array.from(state.tags),
mapEntries: Array.from(state.map),
},
null,
2,
)}
</code>
<div>
<Data
readOnly={false}
sort={true}
state={{ '': state }}
name={''}
onChange={undefined}
/>
</div>
</div>
</>
);
}
export default Example;
Details see DemoNestedState.tsx
BSD-2-Clause (Free Open Source Software)
FAQs
React component as viewer and editor for general data type
We found that react-any-data 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
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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.