Skip to content

Instantly share code, notes, and snippets.

@Elastic1
Elastic1 / counter.js
Last active May 13, 2021 11:58
Riot + Redux Container Component
import { connect } from './riot-redux'
import Counter from './counter.riot'
const mapStateToProps = (state) => ({
count: state
})
const mapDispatchToProps = (dispatch) => ({
increment() {
dispatch({ type: 'INCREMENT' })