
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@fleur/react
Advanced tools
`@fleur/fleur` connector for React. (See [`@fleur/fleur`](https://www.npmjs.com/package/@fleur/fleur) for basic usage.)
@fleur/fleur
connector for React.
(See @fleur/fleur
for basic usage.)
Hooks style:
// ./components/AppRoot.tsx
import React, { useCallback } from 'react'
import { useFleurContext, useStore } from '@fleur/react'
import { increaseOp } from './operations'
export const AppRoot = props => {
const context = useFleurContext()
const { count } = useStore([CountStore], getStore => ({
count: getStore(CountStore).getCount(),
}))
const handleCountClick = useCallback(() => {
context.executeOperation(increaseOp)
}, [])
return <div onClick={handleCountClick}>{count}</div>
}
Class style:
// ./components/AppRoot.tsx
import React from 'react'
import {
createElementWithContext,
connectToStores,
withFleurContext,
} from '@fleur/react'
import { increaseOp } from './operations'
import CountStore from './stores/CountStore'
export default withFleurContext(
// pick Props from Store with `connectToStores()`
connectToStores([CountStore], getStore => ({
count: getStore(CountStore).getCount(),
}))(
class AppRoot extends React.PureComponent {
private handleCountClick = () => {
// ** `this.props.{executeOperation, getStore}` provide by `withFleurContext()`
this.props.executeOperation(increaseOp)
}
render() {
return <div onClick={this.handleCountClick}>{this.props.count}</div>
}
},
),
)
import Fleur from '@fleur/fleur'
import { FleurContext } from '@fleur/react'
import AppRoot from './components/AppRoot'
import CountStore from './stores/CountStore'
const app = new Fleur({ stores: [ CountStore ] })
const context = app.createContext()
ReactDOM.render(<FleurContext value={context}><AppRoot /></FluerContext>, {})
FAQs
`@fleur/fleur` connector for React. (See [`@fleur/fleur`](https://www.npmjs.com/package/@fleur/fleur) for basic usage.)
The npm package @fleur/react receives a total of 3 weekly downloads. As such, @fleur/react popularity was classified as not popular.
We found that @fleur/react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.