LoginSignup
4
3

More than 3 years have passed since last update.

Laravel 6.0 + React の環境構築

Last updated at Posted at 2019-11-14

1: Laravel セットアップ

$ composer create-project --prefer-dist laravel/laravel LaravelReact

2:React セットアップ

$ cd LaravelReact
$ php artisan preset react
$ npm install && npm run dev

3:簡易 WEBサバ起動 & ブラウザ確認(http://localhost:8000)

% php artisan serve

4:React動作確認

/resources/views/welcome.blade.php

    <body>
        <div id="example"></div>
        <script src="{{mix('js/app.js')}}" ></script>
    </body>


スクリーンショット 2019-11-14 17.07.55.png

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3