What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-03 12:39:02
communication child to parent react js
import React from 'react'; import Child from './Child' export default class Parent extends React.Component { constructor(props){ super(props); th... Add solution -
Javascript 2021-09-02 23:28:01
handle onchange react
import React, { Component } from 'react'; import './App.css'; import Header from './Header'; class App extends Component { constructor(props) { super(props); this.state = {name: "Michael"} } changeTitle = (e) =>{ this.... Add solution -
Javascript 2021-09-02 13:28:01
handling props in class components reactjs ijnterview questions
class StudentInfo extends React.Component{ constructor(props){ super(props); } render(){ return( <div className="main"> <h2>{this.props.name}</h2> <h4>{this.props.rollNumber}</h4> ... Add solution -
Javascript 2021-09-01 07:46:02
asynchronous function using function constructor
const AsyncFunction = Object.getPrototypeOf(async function(){}).constructor; // assume someAsyncCall is a call to another async func we await for that returns 1 (just make this simpler) const func = new AsyncFunction('arg1', 'arg2', 'return arg1 * arg2 * ... Add solution -
C++ 2021-08-31 18:20:01
passing the value to base class constructor from derived class c++
#include <iostream> #include<string> using namespace std; class Father{ protected: int height; public: Father(){ cout << "constructor of father is called"<<endl; } }; class Mother{ protected: strin... Add solution -
Javascript 2021-08-31 17:48:02
prototype
/* Answer to: "javascript prototype explained" */ /* The prototype object is special type of enumerable object to which additional properties can be attached to it which will be shared across all the instances of it's constructor function... Add solution
Best helpers
Ranking is empty