Code Monkey home page Code Monkey logo

react-mobx-starter's Introduction

react-mobx-starter project

Want to have a quickstart with react, mobx and typescript?

Check out this project to spent time implementing your features and not setting up your build config. To help you while developing, it reloads components and stylesheets on the fly. No full page reload required.

Supported features:

  • Typescript
  • React
  • Mobx
  • Styled components
  • HMR of components
  • HMR of styles
  • Minifies/obfuscates your javascript in production
  • Uses jest for unit testing
  • Use VS Code to debug your code and tests

Prerequisite

To debug your unit tests, please make sure you are using node version >= 8.9.4

Install

Checkout the project and run in your terminal:

npm install

Run development mode

npm run dev

Run test

npm run test

Build for production

npm run build

The output will be under /dist

Debug active unit test file

To debug the active unit test file, go to the debug section in VS Code and select the "Jest Test Current File" launch config. Then open your unit test file, set breakpoints wherever you want and press "F5".

How to use images

To use images, you can import them in your current file and webpack will give you the image as a base64 encoded string or as a path to the image.

import * as image from './image.jpg';

const ImageComponent = () => <img src={image} />;

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.