Coder Social home page Coder Social logo

ottograjeda / t-510-simpletoast Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 3.99 MB

ReactJS: SimpleToast for MPA

License: Other

HTML 43.16% CSS 8.13% JavaScript 48.71%
reactjs toast multi-page-application javascript landing-page landingpage multi-page-boilerplate mpa

t-510-simpletoast's Introduction

ReactJS: SimpleToast for MPA

"SimpleToast" is sample code of a very basic toast notification component for React.

A toast is aka a snackbar... a temporary notification to the user after some action (such as a
button click). A use case is UI feedback; i.e. show response (like "Item Added") after button
click. This is sample code for an toast component in an MPA.

This repo is for Web built using create-react-app (see docs). It can be used as
starter-kit for the MPA or combined with an SPA monorepo, like SimpleApp for
Mobile use on iOS & Android.

Installation

  • Get the repo
  • From root directory, do yarn
    Required Basic ReactJS knowledge. If repo user needs review, please read this

Run

For web, from the root directory, do

  • node_modules/.bin/webpack -p --progress
  • node_modules/.bin/webpack-dev-server --content-base public/ --config ./webpack.config.js --inline --hot --colors
  • Manually open a browser to localhost:8080 to see webapp

Demo & Animated GIFs

Notes - Development

  • CSS is minimal and MUI
  • ServiceWorker (for PWA) not used
  • Component is statefull ; does not use Redux
  • Assets (css, images, etc.) are copied during build process
  • Custom components for Header & Footer included. Can be refactored as needed

Inspiration

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.