- 4️⃣ Create React App 4 (using Webpack 4)
- 5️⃣ Create React App 5 (using Webpack 5)
- ⚡️ React with Vite
Steps to install a CRA 4 app from scratch using the SDK:
Steps to install a CRA 4 app from scratch using the SDK:
// resources/js/models/Model.js | |
export default class Model { | |
constructor (attributes = {}) { | |
this.fill(attributes) | |
} | |
static make (attributes = {}) { | |
return Array.isArray(attributes) | |
? attributes.map(nested => new this(nested)) |
<script setup> | |
import { ref, toRefs, computed } from 'vue' | |
import { useWorkspace } from '@/composables' | |
import TweetFormUpdate from './TweetFormUpdate' | |
const props = defineProps({ | |
tweet: Object, | |
}) | |
const { tweet } = toRefs(props) |
export default { | |
props: { | |
stripe: { | |
type: String, | |
required: true, | |
}, | |
options: { | |
type: Object, | |
required: true, | |
} |
import { watchEffect } from "vue" | |
export const useAutoresizeTextarea = (element) => { | |
const resizeTextarea = () => { | |
element.value.style.height = 'auto' | |
element.value.style.height = element.value.scrollHeight + 'px' | |
} | |
watchEffect(onInvalidate => { | |
if (! element.value) return |
<?php | |
abstract class Node {} | |
class Calculator extends Node { | |
public function __construct(public array $statements){} | |
} | |
class Add extends Node { | |
public function __construct(public Node $left, public Node $right){} |
<?php | |
namespace Tests; | |
use Tests\Authenticated; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Foundation\Testing\RefreshDatabase; | |
class ArticleUpdateTest extends TestCase | |
{ |
<?xml version="1.0" encoding="UTF-8"?> | |
<ruleset name="Laravel"> | |
<description>The default PHP Code Style of my Laravel projects.</description> | |
<!-- Files to include. --> | |
<file>app</file> | |
<file>config</file> | |
<file>routes</file> | |
<file>tests</file> |