I'm not sure. A former coworker showed me codesandbox.io code for his React projects and in wondering how to get started I found this which suggests you should update Node and npm and then run these three commands at a command prompt:
- npx create-react-app my-app
- cd my-app
- npm start
Alright, this should spin up a browser pointed to http://localhost:3000/ are therein you will see a page prompting you to change the App.js file inside of the src folder immediately inside of the outermost project folder you just made. I have not gotten to the changes yet. When I look at this file I see:
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
}
}
export default App;
No comments:
Post a Comment