
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
react-vivy
Advanced tools
React bindings for Vivy based on react-redux. It exports all components and hooks from react-redux, and also exports the custom hooks for Vivy.
Using npm:
$ npm install vivy react-vivy
$ cd ./examples/[EXAMPLE_NAME]
$ npm run start
Example names:
import React from 'react';
// Import hook "useModel"
import {useModel} from 'react-vivy';
const App = () => {
// Get model state and actions/reducers using hook "useModel".
const [modelState, modelActions] = useModel('YOUR_MODEL_NAME_SPACE');
// "useModel" can also accept a model as an argument.
// import model from 'path_to_your_model';
// const [modelState, modelActions] = useModel(model);
// "useModel" can also accept a function as an argument.
// const [modelState, modelActions] = useModel(state => state.your_model_name_space);
// Get some value from modelState.
const {value} = modelState;
// Get some actions or reducers from modelActions.
const {updateValue} = modelActions;
return (
<input value={value}
onChange={e => updateValue({value: e.target.value})}/>
);
};
export default App;
useModelimport {useModel} from 'react-vivy';
// Get model state, actions and reducers
const [modelState, modelActions] = useModel('YOUR_MODEL_NAME_SPACE');
import {useModel} from 'react-vivy';
import model from 'path_to_your_model';
// Get model state, actions and reducers
const [modelState, modelActions] = useModel(model);
import {useModel} from 'react-vivy';
// Get model state, actions and reducers
const [modelState, modelActions] = useModel(state => state.your_model_name_space);
useStoreStateimport {useStoreState} from 'react-vivy';
// Get store state
const storeState = useStoreState();
useModelStateimport {useModelState} from 'react-vivy';
// Get model state
const modelState = useModelState('YOUR_MODEL_NAME_SPACE');
import {useModelState} from 'react-vivy';
import model from 'path_to_your_model';
// Get model state
const modelState = useModelState(model);
import {useModelState} from 'react-vivy';
// Get model state
const modelState = useModelState(state => state.your_model_name_space);
useModelActionsimport {useModelActions} from 'react-vivy';
// Get model actions and reducers
const modelActions = useModelActions('YOUR_MODEL_NAME_SPACE');
import {useModelActions} from 'react-vivy';
import model from 'path_to_your_model';
// Get model actions and reducers
const modelActions = useModelActions(model);
import {useModelActions} from 'react-vivy';
// Get model actions and reducers
const modelActions = useModelActions(state => state.your_model_name_space);
useGlobalReducersimport {useGlobalReducers} from 'react-vivy';
// Get all global reducers
const globalReducers = useGlobalReducers();
FAQs
React bindings for Vivy based on react-redux
The npm package react-vivy receives a total of 1 weekly downloads. As such, react-vivy popularity was classified as not popular.
We found that react-vivy 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.

Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.

Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.

Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.