Skip to content

Instantly share code, notes, and snippets.

@bala020304
bala020304 / tabs.md
Created November 9, 2016 00:08
tabs
  • i have simple tabs code
  • i am trying to move the tabs container inside my li tag, since its a new requirement
  • i tried but its working partially.
  • now the same tab content is displaying twice
  • can you guys tell me how to fix it.
  • providing my code below.
@bala020304
bala020304 / reactJSON.md
Created October 24, 2016 23:01
trying to reuse the value in renderResult function which I have used in render function
  • i am new to react
  • i am trying to reuse the value in renderResult function which I have used in render function.
  • but not sure how to get this vlue data.balance.pendingElectronicTransferAmount in renderResult function.
  • the reason i need to update with new value since I need to get the entire amount, previously i was getting only one amount.
  • right now when I print this line console.log("this.props--->" + JSON.stringify(data.balance)); I dont get the value for pendingElectronicTransferAmount
  • everything is working fine in render() function but not in renderResult function. -- can you guys tell me how to fix it.