iteria-app / lowcode

React Lowcode - prototype, develop and maintain internal apps easier
https://iteria.app
GNU Affero General Public License v3.0
48 stars 23 forks source link

ReactLive + highlight.ts #7

Open jozef-slezak opened 4 years ago

jozef-slezak commented 4 years ago
id = __REACT_DEVTOOLS_GLOBAL_HOOK__.reactDevtoolsAgent.getIDForNode(event.target.detail....)
__REACT_DEVTOOLS_GLOBAL_HOOK.reactDevtoolsAgent.logElementToConsole({id, rendererID: 1})
__REACT_DEVTOOLS_GLOBAL_HOOK__.reactDevtoolsAgent.selectNode(document.getElementsByTagName('div')[3])
jozef-slezak commented 4 years ago
function App() {
  let data = ['value X', 'value Y']
  return(
    <div>
      <table>
        <tr>  
          <th>ID</th>
          <th>Name</th>          
        </tr>
        {data.map((value, index) => {
          return <tr>
              <td>{index}</td>
              <td>{value}</td>          
            </tr>    
        })}
        <tr>
          <td>2</td>
          <td>produkt 2</td>
        </tr>
      </table>
    </div>

  )
}