Skip to content

Node JS null is not an object #123500

Closed Answered by bin2209
saigonautoart asked this question in Discussions
Discussion options

You must be logged in to vote

It seems like there's an issue with your React Router setup in the App.js file. The error you're encountering (null is not an object (evaluating 'dispatcher.useRef')) typically occurs when there's a problem with how React components are being rendered or initialized.

`import React, { useEffect, useState } from 'react';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import "./App.css";
import "bootstrap/dist/css/bootstrap.min.css";
import "bootstrap/dist/js/bootstrap.min.js";
import { Header } from "./components/layout/Header";
import { Footer } from "./components/layout/Footer";
import { Home } from './components/Home';

function App() {
const [message, setMessage] = us…

Replies: 1 comment

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment