
Company News
Socket Partners with Replit to Block Malicious Packages in AI-Powered Development
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.
根据 future-team 框架 练习demo, 原地址:https://github.com/future-team/gfs-head
import {Head,Footer} from 'ea-head'
<header id="head"></header>
<div id="root" style="padding: 10px;margin-bottom:500px">
这里是内容
</div>
<footer id="footer"></footer>
头部支持配置,传入一个title数组即可。如下:
const logo = {
className: 'logo',
title: 'FutureTeam'
};
let titles = [
{title: '博客', href: 'http://uedfamily.com/'},
{title: '文档', href: 'http://xxx.com'},
{title: '关于我们', href: 'http://uedfamily.com/about/'},
{title: '更多组件', href: 'http://uedfamily.com/framework/'}
];
ReactDom.render(
<Head logo={logo} titles={titles}></Head>,
document.getElementById('head')
);
底部信息支持传参和children两种形式,两者都存在的情况下,children形式优先。
ReactDom.render(
<Footer content='adasdas'>
sddsdssdsd
</Footer>,
document.getElementById('footer')
);
* 0.0.5 修复必要的css
* 0.0.2 删除不必要的reactDom
* 0.0.1 初始版本
FAQs
common head for framework demo
We found that ea-head 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.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.