Skip to content

Instantly share code, notes, and snippets.

@mijms
Created July 22, 2021 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mijms/fa9e28caf13dde7125879a6f05e76cb6 to your computer and use it in GitHub Desktop.
Save mijms/fa9e28caf13dde7125879a6f05e76cb6 to your computer and use it in GitHub Desktop.
export class ListPlus extends Component {
getData() {
// Connect Your Apps and Stores here
// requesting data
// applying data filter
// filter from front end store
}
render() {
const {list} = this.props;
const data= this.getData()
if (isEmpty(data)) {
return <></>
}
return (
<Collapse data={data} list={list}/>
)
}
}
export default connect((state, props)=>({
data_store: get(state, props.store_name)
}))(ListPlus)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment