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

racjsx-react

v1.0.0

Published

Application For React Based On RacJSX

Downloads

2

Readme

RacJSX-React

Application For React Based On RacJSX

Provider

参考redux的Provider

connect

方法模型:connect(dep, mergeStatesProps, store) 参数介绍:
1)dep: 必要,store的依赖声明
2)mergeStatesProps: 必要,function,根据当前store的state和当前组件的props进行融合生成能够使用的props
3)store: 不必要,如果传了,就链接这个store,不传的话就链接Provider或者props的store

inject

方法模型:inject(dep, propertyKey, sync, pure, store) 参数介绍:
1)dep: 必要,store的依赖声明
2)propertyKey: 默认为'racxStore',代表注入之后组件能够以this[propertyKey]获取store的内容(防止一个组件被多次注入不同的store)
3)sync: 默认为false,监听的发生是同步还是异步
4)pure: 默认为false,如果为true,组件中获取的store就只是store的值映射(换句话说:拿到的store进行操作赋值是不会被触发监听的)
5)store: 不必要,如果传了,就链接这个store,不传的话就注入Provider或者props的store