OpenSource: react-appstore-button module

react-appstore-button version: 0.0.9 🎒 NPM URL: 🕶 Github URL: What is this? An React component which allows you to create an AppStore Download Button in a few seconds. This button: Using vector format, svg file , so don’t worry about the resolution Can specify your App Store button with customised url, width and
Read More »

Pass values using Props

Arguments passed to components are called props in React, which looks like HTML element attributes, such as src, width, etc. props can be accessed such as: this.props.autor Define props in Component Comment [gist] Pass values to Component Comment using props [gist] A full example on passing parameters values [gist] Notice: function such
Read More »

WeApp: Jandan

WeApp-jandan 微信小程序–煎蛋 1. 效果图 (Final Screenshot) 功能: 无聊图 段子 妹子图 (这个是必须的) 投票 Github 地址: 2. 声明 (Disclaim) 真机调试不可用,因为,煎蛋的服务器没有正确地配置SSL证书,见谅~~~~ 如果有朋友告知怎么绕过这个证书错误,请告知多谢,🤗 3. 作者 Contact Weclome to my blog: Twitter: Wechat: [wpecpp name=”LIKE” price=”1.99″ align=”center”]

Get and Set a state in React

The state is a JavaScript object that lives inside each of the component, We can aaccess it via this.state. Unlike JQuery and Backbone, DOM is manipulated indirectly in React, which means we don’t modify the DOM directly. Use Scenarios Button click Link click How to use state 1. Set the Component’s state in the constructor
Read More »