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

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -