Skip to content

Laravel frontend preset for react and redux with auto lazy loader

Notifications You must be signed in to change notification settings

abdlhaklalouche/react-redux-with-loader-preset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Laravel React And Redux With Loader Preset

About

A laravel preset for using react with redux quickly with autoloading components.

Installation

  1. Install Laravel and cd to your project.
  2. Install this preset via composer require abdlhaklalouche/react-redux-with-loader-preset

Usage

Initializing the preset

  1. php artisan preset react-redux-with-loader
  2. npm install
  3. npm run watch or npm run dev or npm run prod
  4. php artisan serve to run the server.

Using the preset

  1. To create a component or container go to resources/js/components or resources/js/containers and create any component then create reducers in resources/js/components and make the actions and store them in resources/js/actions.

  2. To use that component/containers without render it manualy you just have to use directive code bellow:

@react({
    "path": "components/COMPONENT_FILENAME_HERE",
    "loading": TRUE_OR_FALSE,
    "class": "CSS_CLASSES_HERE",
    "props": {
        "PROPERTY_NAME": "PROPERTY_VALUE"
    }
})

Copyright and license

Copyright 2018 Laravel react-redux-with-loader-preset Contributers under the MIT license.

About

Laravel frontend preset for react and redux with auto lazy loader

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published