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