
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
🥑 A React Hook similar to the Vuejs API.
Live Demo ✨ https://use-vuejs.vercel.app
Install with yarn
yarn add use-vuejs
Or you can
npm install use-vuejs
Or inject the script at your page by jsdelivr CDN
<script src="https://cdn.jsdelivr.net/npm/use-vuejs@latest/dist/index.min.js"></script>
You can import the darkmode as a react component.
import React from 'react';
import useVuejs from 'use-vuejs';
export default () => {
const { data } = useVuejs({
data: {
message: 'Hello Vue!',
},
});
return <div id="app">{data.message}</div>;
};
function App() {
const { message } = useVuejs({
data: {
message: 'Hello Vue!',
},
});
return <div id="app">{message}</div>;
}
ReactDOM.render(<App />, document.querySelector('#app'));
v-bindfunction App2() {
const { message } = useVuejs({
data: {
message: '页面加载于 ' + new Date().toLocaleString(),
},
});
return (
<div id="app-2">
<span title={message}>鼠标悬停几秒钟查看此处动态绑定的提示信息!</span>
</div>
);
}
ReactDOM.render(<App2 />, document.querySelector('#app-2'));
v-iffunction App3() {
const { seen } = useVuejs({
data: {
seen: true,
},
});
return <div id="app-3">{seen && <p>现在你看到我了</p>}</div>;
}
ReactDOM.render(<App3 />, document.querySelector('#app-3'));
v-forfunction App4() {
const { todos } = useVuejs({
data: {
todos: [
{ text: '学习 JavaScript' },
{ text: '学习 Vue' },
{ text: '整个牛项目' },
],
},
});
return (
<div id="app-4">
<ol>
{todos.map(todo => (
<li>{todo.text}</li>
))}
</ol>
</div>
);
}
ReactDOM.render(<App4 />, document.querySelector('#app-4'));
function App5() {
const { message, reverseMessage } = useVuejs({
data: {
message: 'Hello Vue.js!',
},
methods: {
reverseMessage: function() {
this.message = this.message
.split('')
.reverse()
.join('');
},
},
});
return (
<div id="app-5">
<p>{message}</p>
<button onClick={reverseMessage}>反转消息</button>
</div>
);
}
ReactDOM.render(<App5 />, document.querySelector('#app-5'));
v-modelfunction App6() {
const { message, vModel } = useVuejs({
data: {
message: 'Hello Vue!',
},
});
return (
<div id="app-6">
<p>{{ message }}</p>
<input onChange={vModel(message)} />
</div>
);
}
ReactDOM.render(<App6 />, document.querySelector('#app-6'));
Install dependencies,
$ npm i
Start the dev server,
$ npm start
Build documentation,
$ npm run docs:build
Build library via father-build,
$ npm run build
Thanks goes to these people (emoji key):
|
Turkyden 💻📖🚇⚠️ |
KnowsCount 📖 |
FAQs
A React Hook similar to the Vuejs API.
The npm package use-vuejs receives a total of 1 weekly downloads. As such, use-vuejs popularity was classified as not popular.
We found that use-vuejs 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.