LaravelPackages.net
Acme Inc.
Toggle sidebar
abdlhaklalouche/react-with-loader-preset

Laravel frontend preset for react with auto lazy loader

15
0
About abdlhaklalouche/react-with-loader-preset

abdlhaklalouche/react-with-loader-preset is a Laravel package for laravel frontend preset for react with auto lazy loader. It currently has 0 GitHub stars and 15 downloads on Packagist. Install it with composer require abdlhaklalouche/react-with-loader-preset. Discover more Laravel packages by abdlhaklalouche or browse all Laravel packages to compare alternatives.

Last updated

Laravel React With Loader Preset

About

A laravel preset for using react quickly with autoloading components.

Installation

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

Usage

Initializing the preset

  1. php artisan preset react-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 go to resources/js/components and create any component
  2. To use that component 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 2018 Laravel react-with-loader-preset Contributers under the MIT license.

Star History Chart