0.0.1 ⢠Published 5 years ago
cra-minimal v0.0.1
Create React App Minimal setup
cra-minimal runs create-react-app and then replaces the contents of the src/
folder with my preferred minimal boilerplate. Read more in the About this program section below.
Usage
Install create-react-app:
npm install -g create-react-appInstall cra-minimal:
npm install -g https://github.com/arthurbernierjr/create-react-app-minimalUse cra-minimal as you would use create-react-app to create a project:
cra-minimal my-new-react-projectUninstall if you don't like it:
npm uninstall -g cra-minimalAbout this program
I š create-react-app, but I don't always want the boilerplate files that it comes with:
src/
āāā App.css
āāā App.js
āāā App.test.js
āāā index.css
āāā index.js
āāā logo.svg
āāā registerServiceWorker.jsThis program runs create-react-app and replaces the contents of the src
folder with my preferred boilerplate:
src/
āāā App.css
āāā App.js
āāā index.jsApp.css (empty file)
App.js
import React, { Component } from "react";
import "./App.css";
class App extends Component {
render() {
return <div className="App">Hello World</div>;
}
}
export default App;index.js
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
ReactDOM.render(<App />, document.getElementById("root"));0.0.1
5 years ago