NpmLess React App
The web app does not do much be this should be an help for anyone who wants to start a react project with no configuration and no dependency on the npm environment. Personally I loved it.
Installation
The only dependency required is esbuild
The steps to install it are explained here
Run
To run the project just
make run
It will tell you what url to open
Build and deploy
Build it with make
and upload the www
where you want
make build
rsync www/ user@serverIP_or_name:/var/www/mypage.example.org
Update react
- Find minified version of
react
andreact-dom
. We've taken ours from unpkg.com find the umd version - Replace old by the newly downloaded in
vendor/
- Replace export
require("react")
byrequire("./react")
invendor/react-dom.js
- Enjoy
How to install package xxx.yyyy
Well it will depend on the package.
- Mimic what we've done with react. Find a preduild minified version and add it in vendor and try to make it work.
- Copy paste the code from github. Especially if it's for a leftpad function.
Have fun