Sawtaytoes
9/20/2018 - 3:08 AM

Using `ReduxConnection`

Using ReduxConnection instead of connect.

import React from 'react'
import { ReduxConnection } from '@ghadyani-framework/redux-components'

const textSelector = (
  ({ text }) => (
    text,
  )
)

const TestComponent = ({
  text,
}) => (
  <ReduxConnection selector={textSelector}>
    {({ text }) => (
      <div>
        {text}
      </div>
    )}
  </ReduxConnection>
)

export default TestComponent