Giter VIP home page Giter VIP logo

react-exercises's Introduction

react-exercises

Exercise database app built with React and Material-UI using Webpack and Babel.

☘️ Branches

This master branch houses the most up-to-date code. For a particular topic, switch to one of the following branches.

⚡ SPA bundle size-optimizations

🚀 SPA to SSR refactoring

🔗 References

▶️ YouTube

This is a companion repo for Material-UI video series on YouTube. Check out the playlist for all episodes.

📖 Medium

I also wrote Meet Material-UI — your new favorite user interface library on Medium freeCodeCamp. Check it out for an introduction to Material-UI.

⏳ CodeSandbox

You can find code for each video on CodeSandbox.

💻 Installation

# Clone the repo
git clone https://github.com/alex996/react-exercises.git

cd react-exercises

# Install the deps
yarn # (or npm install)

🏗️ Development

yarn start or npm start

Serves the app at localhost:4000 and watches files to re-builds the bundle.

yarn build or npm run build

Builds a production bundle in dist folder.

yarn stats or npm run stats

Generates Webpack stats JSON file and renders a dependency treemap.

yarn serve or npm run serve

Statically serves the contents of dist folder.

⚠️ Breaking Changes

Import Path

As of v1.0.0-rc.0, the import path has been flattened:

-import { Tab } from 'material-ui/Tabs'
+import { Tab } from '@material-ui/core'

Material Icons

material-ui-icons package has been deprecated in favor of @material-ui/icons. In package.json:

-"material-ui-icons": "^1.0.0-beta.36",
+"@materia-ui/icons": "^1.0.0",

Typography Variants

  • v3.x.x - configure the theme
const theme = createMuiTheme({
  // ...
  typography: {
    useNextVariants: true,
  },
}
  • v4.x.x - latest variants are applied by default 🎉
-typography: {
-  useNextVariants: true,
-},

Components

  • Button
-<Button variant='raised' />
+<Button variant='contained' />
-<Button variant='fab' />
+<Fab />
  • Tabs
-<Tabs scrollable />
+<Tabs variant='scrollable' />

ℹ️ Other

Named Imports

Uses tree shaking for convenient top-level imports like above.

Source Maps

Uses cheap-module-source-map for debugging.

Browser Support

Uses @babel/polyfill to support popular browsers.

react-exercises's People

Contributors

alex996 avatar

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.