Email - harun.bspt2014@gmail.com Phone - +8801717615827
PHP, JS, CSS, Python, and Machine Learning Technology

history.push

history.push

this.props.history.push("/") Official Doc Effectively this is the most common way to implement redirect after a successful form submission. Use case in my MERN book library repo onSubmit = ...

Functional-component-declaration-syntax

Functional-component-declaration-syntax

Converting a class-based component to Functional Component class TableRowWrapper extends Component { render() { return <tr>{this.props.children}</tr>; } } Now the ...

e.target.value

e.target.value

The most common implementation of this is as follows to capture the change of event for typing in a form (a login form for example) handleChange(event) { this.setState ({ : ...

What is destructuring in the context of React

What is destructuring in the context of React

Very simply its passing an object as an argument to the function, but the destructuring uses only the named properties of the object. const destructuring = ({ used }) => console.log(used); ...

destructuring_basics-js

destructuring_basics-js

Without using the destructuring syntax getting multiple values out of an array can be quite cumbersome. You would do something like this: const items = ; const car = items; const bike = ...

Controlled-unContolled-Component

Controlled-unContolled-Component

A large part of React is this idea of having components control and manage their own state. What happens when we throw native HTML form elements (input, select, textarea, etc) into the mix? Should we ...

Implementing this React context API

Implementing this React context API

One simple use case for implementing this React context API Have you ever experienced the pain of trying to get state from the top of your react tree to the bottom? This pain you’re feeling is ...

What is reconciliation

What is reconciliation

React is magical, but it still can’t get around the fact that we must build a DOM for the user to see anything. Building a DOM on every page load is not really faster than old-fashioned HTTP calls ...

Redirect Component

Redirect Component

Rendering a will navigate to a new location. The new location will override the current location in the history stack, like server-side redirects (HTTP 3xx) do. ...

React Fragment

React Fragment

All return values need to be wrapped in a div. This is because a component can only return one single element, and if you want more than one, you need to wrap it with another container tag. This, ...

Explain-whats-wrong-with-this-React-code

Explain-whats-wrong-with-this-React-code

Technical interviews may also include time where the developer is asked to look at (and probably write) some code. Hence, take a look at the code below. Can you identify two problems ? class ...

Translate »
Register New Account