abdlhaklalouche / react-redux-with-loader-preset
Laravel frontend preset for react and redux with auto lazy loader
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/abdlhaklalouche/react-redux-with-loader-preset
Requires
- laravel/framework: ^5.5
This package is auto-updated.
Last update: 2025-10-07 05:48:34 UTC
README
About
A laravel preset for using react with redux quickly with autoloading components.
Installation
- Install Laravel and cd to your project.
- Install this preset via
composer require abdlhaklalouche/react-redux-with-loader-preset
Usage
Initializing the preset
php artisan preset react-redux-with-loader
npm install
npm run watch
ornpm run dev
ornpm run prod
php artisan serve
to run the server.
Using the preset
-
To create a component or container go to
resources/js/components
orresources/js/containers
and create any component then create reducers inresources/js/components
and make the actions and store them inresources/js/actions
. -
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.