
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
根据 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
The npm package ea-head receives a total of 0 weekly downloads. As such, ea-head popularity was classified as not popular.
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
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

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.