8000 GitHub - foderking/Minimal-React-Template: A minimal React template to start your front-end work.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.

foderking/Minimal-React-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal React Template

Status

Table of Contents

About

A minimal template for building front-end web applications. Modern templates are often bloated, for example - Create React App. They usually come with a lot of unnecessary things that I don't use, and never will. Plus, they also use 'npm' package manager, which is very space and data inefficient. My template uses yarn for package management - Faster, Lighter, and Better than npm. Parcel for bundling - faster and requires less configuration than 'Webpack', And a cherry on top with 'React Bootstrap' - A fast UI framework optimized for React.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Features

  • Parcel for bundling the application
  • Yarn for managing packages
  • React-bootstrap as a ui framework
  • Other custom components

Prerequisites

Things you'll to install this project..

  • An Operating System with a working shell ( Bash, Powershell, zsh etc.)
  • The latest version of Git
  • npm

To install Yarn

npm install --global yarn

Installing

First, clone this project to your local system. You could download as a zip file or clone it throught the terminal

Copy and paste on the terminal

git clone https://github.com/foderking/Minimal-React-Template.git

cd Minimal-React-Template

Then install dependencies:

npm install

To run in hot module reloading mode:

npm start

To create a production build:

npm run build

To run tests:

npm run test

End with an example of getting some data out of the system or using it for a little demo.

Usage

Using filler text

The filler component provides two modules - DummyParagraph and DummySentence. They accept the "length" variable as props.

Using DummyParagraph in src/App.js:

....
import DummyParagraph from './Filler/DummyParagraph'

const App = () =>
{
  return (
    <div className='container'>
      <h1>Hello World!</h1>
      <div className='paragraph'>
        <DummyParagraph length={3} />
      </div>
    </div>
  )
}
....

renders block of text with 3 paragraphs

Using DummySentence in src/App.js:

....
....
import DummySentence from './Filler/DummySentence'

const App = () =>
{
  return (
    <div className='container'>
      <h1>Hello World!</h1>
      <div className='sentence'>
        <DummySentence length={3} />
      </div>
    </div>
  )
}
....
....

renders sentence with 3 words

Credits

Releases

No releases published

Packages

No packages published
0