skip to Main Content

Conver Vanilla JS to React – Reactjs

I'm new with react. I'm trying to convert my vanilla js parallax effect in to react but I'm getting this error "TypeError: Cannot set properties of undefined (setting 'top')". Here is my vanilla js script: <script> let text = document.getElementById('text');…

VIEW QUESTION

How to navigate to a url in class Component – Javascript

import React, { useState, useContext, createContext } from "react"; import { Link, Redirect } from "react-router-dom"; export class Login extends React.Component { constructor(props) { super(props) window.data_login_callback = this.data_login_callback this.data_login_callback = this.data_login_callback.bind(this); } state = { brand: "" } rend(props){ console.log("ddd",props)…

VIEW QUESTION
Back To Top
Search