Basic of React like ; 1. Use of useState() 2.keys 3.JSX 4.Difference between functional and class component().
React Developer Interview Questions
3,485 react developer interview questions shared by candidates
What is a function component?
-What is Hermes and what is it used for and how to enable it?
Where do you see yourself after 5 years? What if after a year MNC gives you an offer, what will you do? Which city would you prefer Normal or Metro? One word for yourself.
Is javascript synchronous or asynchronous?
I had to create two react and react native components. One list with buttons that triggered showing the section items and one login page in react native.
1. const shape = { radius: 10, diameter() { return this.radius * 2; }, perimeter: () => 2 * Math.PI * this.radius, }; console.log(shape.diameter());// console.log(shape.perimeter());// 20 NaN let obj = { x: 2, getX: function() { setTimeout(() => console.log('a'), 0);// new Promise( res => res(1)).then(v => console.log(v));// setTimeout(() => console.log('b'), 0);// } } obj.getX(); o/p :- promise , first SetTimeOut and then second SetTimeOut :- 1,a,b var a = 10; function abc(){ console.log(a);// var a = 20; console.log(a);// } console.log(a);// abc();// 10 10, error can not redeclare a as it is global scoped 10 undefined 20 var a = {'key': 100}; var b = [] b[a] = 90; console.log(b);// [object Object]: 90 var a = 50; var b = { name : 'abc' }; function abc(a,b){ console.log(a,b);// b.name = 'cde'; console.log(a,b);// } abc();// abc(a,b);// console.log(a,b);// 50, { name : 'abc' } -> 50, { name : ‘c’de } 50, { name : 'abc' } -> 50, { name : ‘c’de } 50, { name : 'abc' } undefined undefined undefined undefined 50 { name: 'abc' } 50 { name: 'cde' } 50 { name: 'cde' } function foo() { let a = b = 0; a++; return a; } foo(); console.log(typeof a); // console.log(typeof b); // 1 undefined number let a =10 { var a = 20 } console.log(a);// SyntaxError: Identifier 'a' has already been declared
Tell about your self ?
what is the solid principle and how to use it to improve performance of your app?
What are the main features of React? How does the virtual DOM work in React? What are the differences between functional and class components?
Viewing 1271 - 1280 interview questions