npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

cra-template-rrm

v1.0.5

Published

Template for Create React App with Redux and Material UI.

Downloads

5

Readme

RRM

Template for Create React App with Redux and Material-UI.

How to use

npx create-react-app my-app --template rrm
cd my-app
yarn start

Features

Structure

README.md

Refer to this documentation for information on available scripts and links to some other useful documentation.

public/

The public folder, like most of the other code, is copied straight from the base template of Create React App. So do check out their docs.

src/

The src folder contains our entry point and other JavaScript files. The following files are also copied straight from the base template of Create React App. So do check out their docs.

  • App.test.js
  • index.js
  • logo.svg
  • serviceWorker.js
  • setupTests.js

App.js

This file contains the root component of the react app. It has the Redux store provider and Material-UI paper provider already set up. A React Router is also set up with just one route. You can modify it or add more routes.

All styles are added to the app using the makeStyles feature of Material-UI. The makeStyles function generates class names we can add to our DOM to add the styles. In App.js two sets of classes are used - classes and localClasses. classes is geneIt cated from a global set of styles that can be found in theme.js. localClasses is generated from a set of styles defined in App.js, to be used inside App.js.

index.css

It contains some global styles.

App.css

It contains some styles to be applied to the App component.

theme.js

It contains some styles that can be used in multiple components. So you can add some styles that you'd like to reuse in multiple components over here.

store.js

This is the redux store script. Learn more from the React Redux docs.

reducers/

This folder contains all the redux reducers. For example, the reducer for authentication is in authReducer.js.

Here, the simple approach of a single UPDATE action type is used for all the actions. It simply replaces the state's properties with the contents of the action payload. This is pretty much the most common action used. More actions can be added to the switch block.

actions/

This folder contains all the redux actions. For example, the actions for authentication is in authActions.js. All redux action types are declared in types.js.