yireo / magento2-react-menu
Module to add a React menu to Magento 2 KO frontend
Installs: 36
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 3
Forks: 3
Open Issues: 2
Language:JavaScript
Type:magento2-module
Requires
- php: >=7.3.0
- ext-json: *
- magento/framework: ^100.1|^101.0|^102.0|^103.0
- yireo/magento2-react: *
Requires (Dev)
- composer/composer: *@dev
This package is auto-updated.
Last update: 2024-10-19 22:01:32 UTC
README
This module offers a React-based menu to replace the existing top navigation of Magento itself. Please note that this is an experiment to show how easy it is to build React components. It could be used on live sites, but comes without warranties.
Installation
Before you install this module, make sure to install the Yireo_React module first. An install via composer
should pick this up right away.
Use the following commands to install this module into Magento 2:
composer config repositories.yireo-react vcs git@github.com:yireo-training/Yireo_React.git
composer config repositories.yireo-react-menu vcs git@github.com:yireo-training/Yireo_ReactMenu.git
composer require yireo/magento2-react-menu:dev-master
bin/magento module:enable Yireo_React Yireo_ReactMenu
bin/magento setup:upgrade
Make sure to read the Usage section below as well.
Usage
This module adds an additional minicart to the Magento 2 frontend, based upon ReactJS, and it removes the old component. This requires the source to be compiled into generic JS code. To compile the source, follow the procedure of Yireo_React
to compile the sources from the root of Magento:
yarn dev