
Research
/Security News
Two Joyfill npm Beta Releases Compromised to Deliver DEV#POPPER Remote Access Trojan
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.
react-model-taro
Advanced tools
The Hooks State management library for Taro
Requirement: Taro 1.3.0 and above, from this version you can use Hooks in Taro
In your empty Taro Project Components:
import Taro, { useState } from '@tarojs/taro'
import { View, Input } from '@tarojs/components'
const Index = () => {
return (
<View>
Content Here...
</View>
)
}
Index.config = {
navigationBarTitleText: 'React Model'
}
export default Index
Use store from react-model-taro:
import { Model } from 'react-model-taro'
// define model
const Todo = {
state: {
items: ['Install react-model', 'Read github docs', 'Build App']
},
actions: {
add: (todo, { state }) => {
state.items.push(todo)
return {
items: state.items
}
}
}
}
// Model Register
const { useStore } = Model(Todo)
const [{ items }] = useStore()
...
<View>
{items.map((item, index) => {
return <View key={index}>{item}</View>
})}
</View>
Now your state is reactive!
react-modelFAQs
The Hooks State management library for Taro
We found that react-model-taro 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
/Security News
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.

Security News
Socket releases free Certified Patches for high-severity Nuxt vulnerabilities, including server-side remote code execution through server island props.

Security News
An open letter signed by 50 companies, from NVIDIA and Microsoft to Mistral and Hugging Face, urges Washington not to restrict open weight AI.