Filter interviews by
React is a JavaScript library for building user interfaces.
React is used for creating interactive UI components.
It uses a virtual DOM for efficient updates.
React allows for reusable components and declarative programming.
Example: ReactDOM.render(
There are two types of components in React.js: Functional Components and Class Components.
Functional Components are simple functions that take props as input and return JSX elements.
Class Components are ES6 classes that extend React.Component and have a render method.
Functional Components are preferred for simple UI components, while Class Components are used for more complex components with state and lifecycle methods...
Top trending discussions
I applied via Company Website and was interviewed in Apr 2021. There were 3 interview rounds.
A reusable React form component that dynamically generates fields and displays inputs in a table format.
Use React's state to manage form data dynamically.
Utilize a mapping function to render form fields based on an array of field definitions.
Implement a submit handler to process the form data.
Display the form inputs in a table format using HTML table elements.
Example of field definitions: [{ label: 'Name', type: 'text'...
A reducer is a pure function in React that takes the previous state and an action, and returns the new state.
Reducers are used in React to manage state changes in an application
They take the previous state and an action as input
Reducers are pure functions, meaning they do not modify the state directly
They return a new state based on the previous state and the action
Redux is a popular library that uses reducers to manag...
New features of HTML5 and CSS positions include flexbox, grid layout, and sticky positioning.
Flexbox allows for easier alignment and distribution of items within a container.
Grid layout enables the creation of complex layouts with rows and columns.
Sticky positioning allows elements to stick to a specific position on the page as the user scrolls.
Spread operator is used to expand an iterable object into individual elements.
Used for passing props to child components
Used for merging arrays and objects
Syntax: ...
Example: const arr = [1, 2, 3]; const newArr = [...arr, 4, 5];
I applied via Naukri.com and was interviewed in Aug 2023. There were 3 interview rounds.
Asked about vanilla.js in react interview.
useState manages state, while useEffect handles side effects in functional components.
useState initializes state: const [count, setCount] = useState(0);
useEffect runs side effects: useEffect(() => { document.title = `Count: ${count}`; }, [count]);
useState can hold any data type: const [user, setUser] = useState({ name: '', age: 0 });
useEffect can mimic lifecycle methods: useEffect(() => { fetchData(); }, []); for...
I applied via Naukri.com and was interviewed before Aug 2023. There was 1 interview round.
States are mutable data managed within a component, while props are immutable data passed from parent to child components.
States are managed within a component and can be changed using setState method
Props are passed from parent to child components and are immutable
States are used for internal component data management, while props are used for passing data between components
Example: A counter component may have a stat...
Data can be passed from children to parents in React components by using callback functions.
Use callback functions to pass data from child components to parent components
Parent component passes a function as a prop to child component
Child component calls the function with the data as an argument to pass data to parent component
I applied via Recruitment Consulltant and was interviewed in Oct 2022. There were 3 interview rounds.
based on 1 interview experience
Software Developer
4
salaries
| ₹5.1 L/yr - ₹19 L/yr |
Reactjs Developer
4
salaries
| ₹1 L/yr - ₹5 L/yr |
TCS
Accenture
Wipro
Cognizant