Saved Bookmarks
| 1. |
How to call the function in render to react? |
|
Answer» To call a function inside a render in React, use the FOLLOWING code: Exampleimport React, { Component, PropTypes } from 'react'; export default class PatientTable extends Component { renderIcon(){ render() { return ( {this.renderIcon} </div> |
|