Hi , i have a collection of html element to render the output , and i wanna change element tag for eg h2 tag to h4 and then send to the render output markup in react js . I can do them in jquery but wanna try in reactjs .some ideas will be helpful <fieldset><legend>Clinical Information</legend><h2 style="margin-top:16px;">Summary group</h2><ul><li>Thick</li><li>Black</li><li>Guarding</li><li>Size: small</li><li>Are you sure: yes</li></ul></fieldset> var markup = this.state.htmlsummary // i get the above markup from a api call return <div className="panel panel-info"> <div className="panel-heading">{this.props.summary.Caption}</div> <div className="panel-body"> <div style={divStyle} dangerouslySetInnerHTML={markup}></div> </div> </div>; // renders here in this block

Member Avatar
Member Avatar
+0 forum 1

I am planning to build an app in nextcloud but what is the front-end framework i should choose?. I have found the nextcloud repo having angular 1, but the i find it being an old framework, Is there option to use Angular 2 or higher. otherwise which is the best front-end framework to use ?

Member Avatar
Member Avatar
+0 forum 1

I am trying to make a collapsible treeview using react such that when a particular checkbox is checked/unchecked, all the child nodes expand/collapse. I would appreciate some help hiding the child nodes in the tree. I don't understand where to insert the *'isibility* attribute I have here. Here's my code. export default class Treeview extends Component { constructor(props) { super(props); this.state = { visible: true }; } toggle = () => { this.setState( {visible: !this.state.visible} ); }; render() { var visibility; if (!this.state.visible) { visibility = {display: "none"}; } var node = this.props.data; return ( <ul> {Object.keys(this.props.data).map(key => { return …

Member Avatar
+0 forum 0

Hi Guys, I am moving my project from angular 1 to react. Is anybody can help me that how can I authenticate every api calls . I check before every api call that access token exist in cookie or not . Is it not exist redirect to login page

Member Avatar
+0 forum 0

The End.