This project is basic react boilerplate code.
This project doesn't suggest to you about nice file structure and coding style.
Only show you about react-global-components how to use it.
It is version number based on NPM(react-global-components@0.0.19)
// src/index.js
import "./index.css";
import App from "./App";
// This is React Global Components Entry
import ReactGlobalComponents from "react-global-components";
ReactGlobalComponents();
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById("root")
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();And all imports move to plugins directory.
- git clone
- yarn
- yarn start