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

Popular posts from this blog

delphi xe7 upload/download dropbox file using the rest client and show progress -

java - Get more than One value and display it -

apache - PHP Soap issue while content length is larger -