In React's terminology, there are five core types that are important to distinguish:
React Elements
In React's terminology, there are five core types that are important to distinguish:
React Elements
import { Component } from "React"; | |
export var Enhance = ComposedComponent => class extends Component { | |
constructor() { | |
this.state = { data: null }; | |
} | |
componentDidMount() { | |
this.setState({ data: 'Hello' }); | |
} | |
render() { |
Frontier technical checklist: (FORK ME)
git clone https://github.com/ethereum/go-ethereum.git; cd go-ethereum
git checkout release/1.0.0
make geth
export ETH=<data dir>
default data dir on OS X ~/Library/Ethereum
, Linux ~/.ethereum
)
rm -rf $ETH/{blockchain,state,extra}
cp -r $ETH/keystore /path/to/backup/keystore.backup
// | |
// Implementation of the standard account contract as per EIP101 (Cryptocurrency | |
// abstraction). See: https://github.com/ethereum/EIPs/issues/28 | |
// | |
// Written by Alex Beregszaszi, use under the MIT license. | |
// | |
contract StandardAccount { | |
uint256 nextSequence = 1; |
Suppose you're writing a contract which involves a huge amount of participants. As an example, think of an online, blockchain-based Trading-Card Game with tournaments. How would you program a playCard
function? You might be thinking of something like this:
function playCard(uint player, uint card){
...
else if (card == PROFESSOR_OAK){
// shuffles the player's hand on his deck
shuffleHand(player)