npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@inf-fe/seact

v0.4.2

Published

React in San, San in React.

Downloads

20

Readme

Seact

React in San, San in React.

什么是 Seact

Seact 是一个工具库,可以使 React 和 San 组件相互调用对方。

应用场景

  • 从 San 迁移至 React 或者 React 迁移至 San
  • 在一个应用中同时使用 React 和 San

请注意,在针对上述应用场景的情况下,无论是 iframe 还是各种微前端的方案都是不错的选择。

只有在极其希望用粒度更小的混合方式的前提下,才建议使用 Seact。因为一旦使用 Seact,项目的工程管理难度将陡然提升。之所以一个项目要用到类似 Seact 这样的库,那么说明该项目本身就在工程管理上做的不够优秀。所以,我们建议,除非万不得已不要使用,如果使用,尽量保证粒度够大,逻辑简单清晰。

安装

npm i @inf-fe/seact

案例

案例

注意

  • sanInReact 中,san 挂载在一个类名是 seact-san-in-react-mount-container 的 div 标签中

TODO

  • 使用styled时效果与预期不符

License

MIT