Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@huolala-tech/react-json-view
Advanced tools
Engligh | 中文
<ReactJsonView />
is a React component for displaying serializable data.
# Yarn
yarn add @huolala-tech/react-json-view
# NPM
npm install @huolala-tech/react-json-view
# pnpm
pnpm install @huolala-tech/react-json-view
See examples
imoprt React from 'react';
import ReactDOM from 'react-dom';
import ReactJsonView from '@huolala-tech/react-json-view';
import '@huolala-tech/react-json-view/dist/style.css';
const data = [1,2,3,4]
const App = () => {
return (
<div id="app">
<ReactJsonView
source={data}
darkMode={false}
rootLabel="Response data"
keyCount={200}
defaultExpand={false}
maxTitleSize={100}
/>
</div>
);
};
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root') as HTMLElement
)
The default configuration usage:
<ReactJsonView
source={data}
darkMode={false}
rootLabel=""
defaultExpand={false}
keyCount={200}
maxTitleSize={100}
copyable={true}
expandable={true}
/>
Name | Type | Default value | Description |
---|---|---|---|
source | object | None | Origin serializable data. |
darkMode | boolean | false | Indicate whether enable dark mode. |
rootLabel | React.ReactNode | "" | Root node's label. |
defaultExpand | boolean / number | false | Whether expand property panel. Expand at a particular depth if you pass a integer value. |
keyCount | number / "all" | 200 | ReactJsonView supports lazily loading more properties. The parameter indicates how many properties to show at a time, and you can pass "all" to show all properties. |
maxTitleSize | number | 100 | The max length of abbreviated title in collapse. |
copyable | boolean | true | Indicate whether enable copy function. |
expandable | boolean | true | Indicate whether enable expand function. |
stringEllipse | boolean | true | Ellipse if the string type value's length is more than 100 or show all text when you pass false. |
FAQs
A react component for displaying JSON data
We found that @huolala-tech/react-json-view demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.