javascript - Attaching data to React components -
i have defined list of components components
follows.
components = immutable.fromjs(['string', 'number', 'object', array]).filter (type) => type isnt @props.object.get('type') .map (type) => 'to ' + type .map (typestring) => <a href='#' onclick={@handleclick}>{typestring}</a>
however attach information created components later access during callback (@handleclick
). there way in reactjs?
note: workaround create new custom component, , pass data need props, , send props during callback.
Comments
Post a Comment