Introduction

React is one of the most powerful technologies, used to develop an efficient frontend web app, maintained by Facebook and a community of individual developers and companies. As we know, for an impactful approach or live approach we need to configure the React framework with Redux structure. However, the Redux structure is quite hard to understand and configure for beginner and intermediate level developers. So to resolve those bridges between React and Redux structure Jumpsuit paper - thin API comes into the picture.
Jumpsuit - A React Framework

What is Jumpsuit?

Jumpsuit is a paper-thin API, powerful and extremely efficient Front-end framework & CLI. It provides scalability to write the code in the fastest way to reduce the figuration of the Redux structure. In a simple way, we can say it's an alternative to React + Redux.
Sample application using Jumpsuit in React App
# Create React Application using create-react-app
  1. create-react-app JimpsuitApp
  2. cd JimpsuitApp
# Install Jumpsuit in created react application
  1. yarn add Jumpsuit or npm install Jumpsuit
# Configure the Jumpsuit code in index.js file
  1. import React from 'react'
  2. import { Render, State, Actions, Component, Effect } from 'Jumpsuit' // import Jumpsuit
  3. // Initialize State
  4. const CounterState = State({
  5. // Initial Variable
  6. initial: { counter: 0 },
  7. // Actions
  8. increment: ({ counter }) => ({ counter : counter + 1 }),
  9. decrement: ({ counter }) => ({ counter : counter - 1 })
  10. })
  11. // async action
  12. Effect('asyncIncrement', () => {
  13. setTimeout(() => Actions.increment(), 1000)
  14. })
  15. const Counter = Component({
  16. render() {
  17. return (
  18. <>
  19. <h1 className="head">{this.props.count}</h1>
  20. <button className="btn btn-success" onClick={Actions.increment}>Increment</button>
  21. <br />
  22. <button className="btn btn-danger" onClick={Actions.asyncIncrement}>Asyncronous Increment</button>
  23. </>
  24. )
  25. }
  26. }, (state) => ({
  27. // Subscribed for counter state
  28. count: state.counter.counter
  29. }))
  30. // global state declaration
  31. const globalState = { counter : CounterState }
  32. // Render app!
  33. Render(globalState, <Counter/>, 'app')
# Now start the action
  1. yarn start

Why choose Jumpsuit?

  • Removes the Redux structure configuration
  • Provide live or hot state reload
  • Zero boilerplate. You can write your app in line 1
  • Simplified API version
  • Easy to understand and write