create-react-app template
npx create-react-app my-app --template typescript
create-react-app template
npx create-react-app my-app --template typescript
create react app not creating template
if react is installed globally, run this:
npm uninstall -g create-react-app
then run this:
npx create-react-app {directory name}
create a new project with create-react-app
npx create-react-app project-name
react app.js template
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
</div>
<p className="App-intro">
To get started, edit <code>src/App.js</code> and save to reload.
</p>
</div>
);
}
}
export default App;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us