I am make a login and signup form.In app.js when i call login and sigup it throw error of module not found however i have given a correct path
import React, { Component } from 'react';
import SignUp from './components/Signup';
import Login from './components/Login';
import Forget from './components/forget';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<h1>Sign Up</h1>
<SignUp />
<h1>Login</h1>
<Login />
<h1>Forgot Password</h1>
<Forget />
</div>
);
}
}
export default App;
Paths:
/Users/moiz/Form/form/src/componenets/Login.js
what should be the problem
2
Answers
I think that the typo in >componenets< is causing the error.
Nothing too big just the error in the path where components has been misspelt.