Giter VIP home page Giter VIP logo

reactxstarter's Introduction

reactXstarter

React + Redux + React Native Starter Kit with reusable business logic. Sample TODO app built in.

https://youtu.be/9S3mpotVgXg?t=1833

What is this Repository?

  1. Demo of how the code can be reused between React and React Native Application
  2. Extracts the business logic to a seperate npm package
  3. Uses Redux to write application business logic: Actions and Reducers are extracted to a seperate npm package.

Code Structure

  1. web: A web application created using Create React App
  2. mobile: Mobile app created using React Native cli
  3. core: The npm package which contains extracted business logic(Actions, Reducers etc). This is reused in both web and mobile

How to use

  1. npm install and npm link in Core
  2. npm install and npm link core in Web and Mobile

Sample Screenshots

Mobile

Web

Other Options

  1. Use Lerna and Yarn workspace to manage multiple packages. Here are couple of good implementations
    https://github.com/fixerteam/React-Native-monorepo
    https://github.com/drgx/react-native-plus-web

  2. Use React Native Web
    https://blog.logrocket.com/the-state-of-react-native-web-in-2019-6ab67ac5c51e/

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.