{"id":11398,"date":"2023-02-13T07:00:51","date_gmt":"2023-02-12T22:00:51","guid":{"rendered":"https:\/\/blog.capilano-fw.com\/?p=11398"},"modified":"2023-01-26T17:32:30","modified_gmt":"2023-01-26T08:32:30","slug":"laravel-react-%e3%81%a7%e3%82%a4%e3%83%b3%e3%83%87%e3%83%b3%e3%83%88%e6%a9%9f%e8%83%bd%e3%82%92%e3%82%82%e3%81%a3%e3%81%9f-textarea-%e3%82%92%e3%81%a4%e3%81%8f%e3%82%8b","status":"publish","type":"post","link":"https:\/\/blog.capilano-fw.com\/?p=11398","title":{"rendered":"Laravel + React \u3067\u30a4\u30f3\u30c7\u30f3\u30c8\u6a5f\u80fd\u3092\u3082\u3063\u305f Textarea \u3092\u3064\u304f\u308b"},"content":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u4ee5\u524d\u304b\u3089\u79c1\u306f\uff08\u307b\u307c\u8da3\u5473\u306a\u306e\u3067\u9045\u3005\u3068\u3057\u3066\u9032\u307f\u307e\u305b\u3093\u304c\ud83d\ude02\uff09\u500b\u4eba\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d3\u30b9\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u305d\u306e\u4e2d\u3067\u958b\u767a\u3057\u305f\u3068\u3042\u308b\u6a5f\u80fd\u304c\u610f\u5916\u306b\u6c17\u306b\u5165\u3063\u305f\u306e\u3067\u3001\u305c\u3072\u3053\u306e\u30d6\u30ed\u30b0\u3067\u3082\u7d39\u4ecb\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u306e\u6a5f\u80fd\u3068\u306f\u3001<\/p>\n<p><strong style=\"font-size: 35px;\">\u30a4\u30f3\u30c7\u30f3\u30c8\u6a5f\u80fd\u3092\u3082\u3063\u305f Textarea<\/strong><\/p>\n<p>\u3067\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u884c\u306e\u5148\u982d\u306b\u7a7a\u767d\u3092\u5165\u308c\u308b\uff08and \u6d88\u3059\uff09\u3053\u3068\u304c\u3067\u304d\u308b\u6a5f\u80fd\u306e\u3053\u3068\u3067\u3059\u306d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11399\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_1.png\" alt=\"\" width=\"231\" height=\"250\" \/><\/p>\n<p>\u901a\u5e38\u3060\u3068\u3053\u306e\u6a5f\u80fd\u306f\u305d\u308c\u307b\u3069\u91cd\u8981\u3067\u306f\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u5165\u529b\u3059\u308b\u5834\u5408\u306f\u3001\u30a4\u30f3\u30c7\u30f3\u30c8\u6a5f\u80fd\u304c\u306a\u3044\u3068\u4e0d\u4fbf\u3060\u3063\u305f\u306e\u3067\u6562\u3048\u3066\u3064\u304f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u300c<strong>Laravel + React<\/strong>\u300d\u3067\u30a4\u30f3\u30c7\u30f3\u30c8\u3067\u304d\u308b\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u3092\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u3057\u3066\u3064\u304f\u3063\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305c\u3072\u4f55\u304b\u306e\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u5b09\u3057\u3044\u3067\u3059\u3002\ud83d\ude04\u2728<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4328 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/no_3.png\" alt=\"\" width=\"364\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/no_3.png 364w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2019\/08\/no_3-300x264.png 300w\" sizes=\"auto, (max-width: 364px) 100vw, 364px\" \/>\u300c\u30d0\u30eb\u30b5\u30f3\u3092\u2026<br \/>\n\u711a\u3044\u3066\u5916\u51fa\u2026<br \/>\n\u30b9\u30de\u30db\u3069\u3053\uff1f\ud83d\ude2b\u300d<\/p>\n<p><strong>\u958b\u767a\u74b0\u5883\uff1a<\/strong> Laravel 9.x\u3001React\u3001Vite\u3001Inertia.js\u3001TailwindCSS<\/p>\n<h1>\u3084\u308a\u305f\u3044\u3053\u3068<\/h1>\n<p>\u5192\u982d\u3067\u3082\u66f8\u304d\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u3084\u308a\u305f\u3044\u3053\u3068\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u306e\u6587\u5b57\u306b\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\u8ffd\u52a0\u3067\u304d\u308b<\/li>\n<li>\u9006\u306b\u30a4\u30f3\u30c7\u30f3\u30c8\u306e\u524a\u9664\u3082\u3067\u304d\u308b<\/li>\n<li>\u5229\u7528\u3059\u308b\u306e\u306f Tab \u30ad\u30fc<\/li>\n<li>\u9006\u30a4\u30f3\u30c7\u30f3\u30c8\u306f Shift + Tab\u3002<\/li>\n<li>\uff11\u884c\u3060\u3051\u3067\u306a\u304f\u3001\u8907\u6570\u884c\u306e\u30a4\u30f3\u30c7\u30f3\u30c8\u306b\u3082\u5bfe\u5fdc\u3059\u308b<\/li>\n<\/ul>\n<p>\u3067\u306f\u697d\u3057\u3093\u3067\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u2757<\/p>\n<h1>\u30eb\u30fc\u30c8\uff06\u30d3\u30e5\u30fc\u3092\u3064\u304f\u308b<\/h1>\n<p>\u4eca\u56de\u306f\u69cb\u9020\u3068\u3057\u3066\u306f\u3068\u3066\u3082\u30b7\u30f3\u30d7\u30eb\u306a\u306e\u3067\u30eb\u30fc\u30c8\uff06\u30d3\u30e5\u30fc\u3092\u4e00\u6c17\u306b\u3064\u304f\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p><strong>routes\/web.php<\/strong><\/p>\n<div>\n<pre>\/\/ \u7701\u7565\r\n\r\n<strong>Route::get('indent_textarea', fn() =&gt; Inertia::render('IndentTextarea\/Index'));<\/strong><\/pre>\n<\/div>\n<p><strong>resources\/js\/Pages\/IndentTextarea\/Index.jsx<\/strong><\/p>\n<div>\n<pre><strong>import IndentTextarea from '@\/Components\/IndentTextarea';<\/strong>\r\n<strong>import {useState} from \"react\";<\/strong>\r\n\r\n<strong>export default function Index() {<\/strong>\r\n\r\n<strong>    const [value, setValue] = useState(\"\u30c6\u30b9\u30c8\uff11\\n\u30c6\u30b9\u30c8\uff12\\n\u30c6\u30b9\u30c8\uff13\");<\/strong>\r\n\r\n<strong>    return (<\/strong>\r\n<strong>        &lt;div className=\"p-5\"&gt;<\/strong>\r\n<strong>            &lt;h1&gt;\u30a4\u30f3\u30c7\u30f3\u30c8\u6a5f\u80fd\u4ed8\u304d\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2&lt;\/h1&gt;<\/strong>\r\n<strong>            &lt;IndentTextarea value={value} onChange={value =&gt; setValue(value)} \/&gt;<\/strong>\r\n<strong>        &lt;\/div&gt;<\/strong>\r\n<strong>    );<\/strong>\r\n\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<div>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306e\u4e2d\u306b\u3042\u308b\u300c<strong>IndentTextarea<\/strong>\u300d\u304c\u6b21\u306e\u9805\u76ee\u3067\u3064\u304f\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3067\u3059\u3002<\/p>\n<h1>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u300cIndentTextarea\u300d\u3092\u3064\u304f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u4eca\u56de\u30e1\u30a4\u30f3\u306b\u306a\u308b\u30a4\u30f3\u30c7\u30f3\u30c8\u6a5f\u80fd\u3064\u304d\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u3067\u3059\u3002<\/p>\n<p><strong>resources\/js\/Components\/IndentTextarea.jsx<\/strong><\/p>\n<\/div>\n<div>\n<pre><strong>import {useEffect, useRef, useState} from \"react\";<\/strong>\r\n\r\n<strong>export default function SourceCodeTextarea(props) {<\/strong>\r\n\r\n<strong>    \/\/ \u30c7\u30fc\u30bf<\/strong>\r\n<strong>    const [value, setValue] = useState(props.value || '');<\/strong>\r\n<strong>    const indentCount = props.indentCount || 4; \/\/ \u30a4\u30f3\u30c7\u30f3\u30c8\u3059\u308b\u30b9\u30da\u30fc\u30b9\u6570<\/strong>\r\n\r\n<strong>    \/\/ \u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2<\/strong>\r\n<strong>    const textareaRef = useRef(null);<\/strong>\r\n<strong>    const handleChange = e =&gt; {<\/strong>\r\n\r\n<strong>        setValue(e.target.value);<\/strong>\r\n\r\n<strong>    };<\/strong>\r\n<strong>    useEffect(() =&gt; {<\/strong>\r\n\r\n<strong>        if(typeof props.onChange === 'function') {<\/strong>\r\n\r\n<strong>            props.onChange(value);<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>    }, [value]);<\/strong>\r\n\r\n<strong>    \/\/ \u30a4\u30f3\u30c7\u30f3\u30c8<\/strong>\r\n<strong>    const indentValue = () =&gt; {<\/strong>\r\n\r\n<strong>        const texts = textareaRef.current.value.split(\"\\n\");<\/strong>\r\n<strong>        let newTexts = [];<\/strong>\r\n\r\n<strong>        texts.forEach((text,index) =&gt; {<\/strong>\r\n\r\n<strong>            if(indentIndexes.current.includes(index)) { \/\/ \u30a4\u30f3\u30c7\u30f3\u30c8\u3059\u3079\u304d\u884c\u304b\u30c1\u30a7\u30c3\u30af<\/strong>\r\n\r\n<strong>                if(isPressingShift.current === true) { \/\/ \u9006\u30a4\u30f3\u30c7\u30f3\u30c8<\/strong>\r\n\r\n<strong>                    for(let i = indentCount; i &gt; 0; i--) {<\/strong>\r\n\r\n<strong>                        const pattern = new RegExp(`^\\\\s{${i}}`);<\/strong>\r\n\r\n<strong>                        if(pattern.test(text)) {<\/strong>\r\n\r\n<strong>                            text = text.replace(pattern, '');<\/strong>\r\n<strong>                            break;<\/strong>\r\n\r\n<strong>                        }<\/strong>\r\n\r\n<strong>                    }<\/strong>\r\n\r\n<strong>                } else { \/\/ \u901a\u5e38\u306e\u30a4\u30f3\u30c7\u30f3\u30c8<\/strong>\r\n\r\n<strong>                    text = ' '.repeat(indentCount) + text; \/\/ repeat()\u3000\u306f\u3001\u6307\u5b9a\u56de\u6570\u306e\u6587\u5b57\u5217\u3092\u7e70\u308a\u8fd4\u3059<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>            newTexts.push(text);<\/strong>\r\n\r\n<strong>        });<\/strong>\r\n\r\n<strong>        setValue(newTexts.join(\"\\n\"));<\/strong>\r\n\r\n<strong>    };<\/strong>\r\n\r\n<strong>    \/\/ \u30ad\u30fc\u30dc\u30fc\u30c9\u30fb\u30a4\u30d9\u30f3\u30c8<\/strong>\r\n<strong>    const isPressingShift = useRef(false);  \/\/ Shift\u30ad\u30fc\u304c\u62bc\u3055\u308c\u3066\u3044\u308b\u304b<\/strong>\r\n<strong>    const isIndenting = useRef(false);      \/\/ \u30a4\u30f3\u30c7\u30f3\u30c8\u4e2d\u304b<\/strong>\r\n<strong>    const handleKeyDown = e =&gt; {<\/strong>\r\n\r\n<strong>        if(e.key === 'Shift') { \/\/ Shift\u30ad\u30fc\u304c\u62bc\u3055\u308c\u305f<\/strong>\r\n\r\n<strong>            isPressingShift.current = true;<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        if(e.key === 'Tab') { \/\/ Tab\u30ad\u30fc\u304c\u62bc\u3055\u308c\u305f<\/strong>\r\n\r\n<strong>            isIndenting.current = true;<\/strong>\r\n<strong>            indentValue();<\/strong>\r\n<strong>            e.preventDefault();<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>    };<\/strong>\r\n<strong>    const handleKeyUp = e =&gt; {<\/strong>\r\n\r\n<strong>        if(e.key === 'Shift') { \/\/ Shift\u30ad\u30fc\u304c\u96e2\u3055\u308c\u305f<\/strong>\r\n\r\n<strong>            isPressingShift.current = false;<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>        if(e.key === 'Tab') { \/\/ Tab\u30ad\u30fc\u304c\u96e2\u3055\u308c\u305f<\/strong>\r\n\r\n<strong>            isIndenting.current = false;<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>    };<\/strong>\r\n\r\n<strong>    \/\/ \u30bb\u30ec\u30af\u30b7\u30e7\u30f3\uff08\u30ab\u30fc\u30bd\u30eb\uff09<\/strong>\r\n<strong>    const indentIndexes = useRef([]);<\/strong>\r\n<strong>    const handleSelect = e =&gt; {<\/strong>\r\n\r\n<strong>        indentIndexes.current = [];<\/strong>\r\n<strong>        const selectionStart = e.target.selectionStart;<\/strong>\r\n<strong>        const selectionEnd = e.target.selectionEnd;<\/strong>\r\n<strong>        const texts = textareaRef.current.value.split(\"\\n\");<\/strong>\r\n<strong>        let currentPosition = 0;<\/strong>\r\n<strong>        let shouldIndent = false;<\/strong>\r\n\r\n<strong>        texts.forEach((text,index) =&gt; {<\/strong>\r\n\r\n<strong>            const textPositionStart = currentPosition;<\/strong>\r\n<strong>            const textPositionEnd = textPositionStart + text.length;<\/strong>\r\n\r\n<strong>            if(selectionStart &gt;= textPositionStart &amp;&amp; selectionStart &lt;= textPositionEnd) {<\/strong>\r\n\r\n<strong>                shouldIndent = true;<\/strong>\r\n\r\n<strong>            } else if(selectionEnd &lt; textPositionStart) {<\/strong>\r\n\r\n<strong>                shouldIndent = false;<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>            if(shouldIndent === true) {<\/strong>\r\n\r\n<strong>                indentIndexes.current.push(index);<\/strong>\r\n\r\n<strong>            }<\/strong>\r\n\r\n<strong>            currentPosition = textPositionEnd + 1;<\/strong>\r\n\r\n<strong>        });<\/strong>\r\n\r\n<strong>    };<\/strong>\r\n<strong>    useEffect(() =&gt; {<\/strong>\r\n\r\n<strong>        if(isIndenting.current === true) { \/\/ \u30a4\u30f3\u30c7\u30f3\u30c8\u4e2d\u306e\u5834\u5408<\/strong>\r\n\r\n<strong>            const texts = textareaRef.current.value.split(\"\\n\");<\/strong>\r\n<strong>            const minIndentIndex = indentIndexes.current[0];<\/strong>\r\n<strong>            const maxIndentIndex = indentIndexes.current.at(-1);<\/strong>\r\n<strong>            let currentPosition = 0;<\/strong>\r\n<strong>            let selectionStart = -1;<\/strong>\r\n<strong>            let selectionEnd = -1;<\/strong>\r\n\r\n<strong>            texts.forEach((text,index) =&gt; {<\/strong>\r\n\r\n<strong>                const textPositionStart = currentPosition;<\/strong>\r\n<strong>                const textPositionEnd = textPositionStart + text.length;<\/strong>\r\n\r\n<strong>                if(minIndentIndex === index) {<\/strong>\r\n\r\n<strong>                    selectionStart = textPositionStart;<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>                if(maxIndentIndex === index) {<\/strong>\r\n\r\n<strong>                    selectionEnd = textPositionEnd;<\/strong>\r\n\r\n<strong>                }<\/strong>\r\n\r\n<strong>                currentPosition = textPositionEnd + 1;<\/strong>\r\n\r\n<strong>            })<\/strong>\r\n\r\n<strong>            textareaRef.current.setSelectionRange(selectionStart, selectionEnd);<\/strong>\r\n\r\n<strong>        }<\/strong>\r\n\r\n<strong>    }, [value]);<\/strong>\r\n\r\n<strong>    return (<\/strong>\r\n<strong>        &lt;textarea<\/strong>\r\n<strong>            ref={textareaRef}<\/strong>\r\n<strong>            className=\"w-full h-64 bg-gray-900 rounded-lg\"<\/strong>\r\n<strong>            style={{color:'#f8f8f2'}}<\/strong>\r\n<strong>            value={value}<\/strong>\r\n<strong>            onChange={handleChange}<\/strong>\r\n<strong>            onSelect={handleSelect}<\/strong>\r\n<strong>            onKeyDown={handleKeyDown}<\/strong>\r\n<strong>            onKeyUp={handleKeyUp} \/&gt;<\/strong>\r\n<strong>    );<\/strong>\r\n\r\n<strong>}<\/strong><\/pre>\n<\/div>\n<p>\u307e\u305a\u5b9f\u88c5\u3059\u308b\u6d41\u308c\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u306e\u30bb\u30ec\u30af\u30b7\u30e7\u30f3\uff08\u30ab\u30fc\u30bd\u30eb\u4f4d\u7f6e\uff09\u304b\u3089\u3069\u306e\u884c\u3092\u30a4\u30f3\u30c7\u30f3\u30c8\u3059\u3079\u304d\u304b\u53d6\u5f97\u3059\u308b<\/li>\n<li>\u3082\u3057 Tab \u3082\u3057\u304f\u306f Shift + Tab \u304c\u62bc\u3055\u308c\u305f\u5834\u5408\u306f\u30a4\u30f3\u30c7\u30f3\u30c8\u6a5f\u80fd\u3092\u5b9f\u884c<\/li>\n<li>\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u306e\u5185\u5bb9\u3092\u5909\u66f4<\/li>\n<li>\u9023\u7d9a\u30a4\u30f3\u30c7\u30f3\u30c8\u5909\u66f4\u3067\u304d\u308b\u3088\u3046\u306b\u30bb\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u4fee\u6b63<\/li>\n<\/ol>\n<p>\u3067\u306f\u3001\u30b3\u30fc\u30c9\u306e\u4e2d\u8eab\u3092\u30d6\u30ed\u30c3\u30af\u3054\u3068\u306b\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u2757<\/p>\n<h2>\u30c7\u30fc\u30bf<\/h2>\n<p>\u3053\u3053\u306f\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u306e\u5024\u3068\u30a4\u30f3\u30c7\u30f3\u30c8\u3059\u308b\u30b9\u30da\u30fc\u30b9\u306e\u6570\uff08\u521d\u671f\u5024\u306f\uff14\u3064\uff09\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u30a4\u30f3\u30c7\u30f3\u30c8\u3092\uff12\u3064\u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div>\n<pre>&lt;IndentTextarea <strong>indentCount=\"2\"<\/strong> \/&gt;<\/pre>\n<h2>\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2<\/h2>\n<p>\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u5165\u529b\u304c\u5909\u66f4\u3055\u308c\u305f\u5834\u5408\u306b<code>useState<\/code>\u306e\u66f4\u65b0\u3092\u3057\u3001\u3055\u3089\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b<code>onChange<\/code>\u30a4\u30d9\u30f3\u30c8\u304c\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u89aa\u5074\u306b\u3082\u305d\u306e\u5909\u66f4\u3092\u4f1d\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f7f\u3044\u65b9\u306f\u3053\u3093\u306a\u30ab\u30f3\u30b8\u3067\u3059\u3002<\/p>\n<div>\n<pre>&lt;IndentTextarea <strong>onChange={...}<\/strong> \/&gt;<\/pre>\n<p>\u3053\u306e\u3042\u305f\u308a\u306f<code>React<\/code>\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3067\u3059\u306d\ud83d\udc4d<\/p>\n<h2>\u30a4\u30f3\u30c7\u30f3\u30c8<\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001\u4eca\u56de\u30e1\u30a4\u30f3\u306e\u30a4\u30f3\u30c7\u30f3\u30c8\u306e\u300c\u8ffd\u52a0 or \u524a\u9664\u300d\u3092\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u6d41\u308c\u3068\u3057\u3066\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u5165\u529b\u3057\u305f\u5185\u5bb9\u3092\u6539\u884c\u30b3\u30fc\u30c9\u3067\u5206\u5272\u3057\u3001\u914d\u5217\u306b\u3059\u308b<\/li>\n<li>\uff11\u884c\u305a\u3064\u30a4\u30f3\u30c7\u30f3\u30c8\u3059\u3079\u304d\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b<\/li>\n<li>\u3082\u3057\u30a4\u30f3\u30c7\u30f3\u30c8\u3059\u3079\u304d\u3068\u3057\u305f\u3089\u3001\u305d\u308c\u306f\u8ffd\u52a0\u306a\u306e\u304b\u524a\u9664\u306a\u306e\u304b\u3092\u30c1\u30a7\u30c3\u30af<\/li>\n<li>\u305d\u308c\u305e\u308c\u5404\u884c\u306b\u5909\u66f4\u3092\u52a0\u3048\u308b<\/li>\n<li>\u6700\u5f8c\u306f\u5404\u884c\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u5408\u4f53\u3055\u305b\u3066\u5143\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u306b\u30bb\u30c3\u30c8\u3059\u308b<\/li>\n<\/ol>\n<\/div>\n<h2>\u30ad\u30fc\u30dc\u30fc\u30c9\u30fb\u30a4\u30d9\u30f3\u30c8<\/h2>\n<p>\u3053\u3053\u3067\u306f\u3001\u30ad\u30fc\u30dc\u30fc\u30c9\u306e\u30a4\u30d9\u30f3\u30c8\u3092\u7ba1\u7406\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u4eca\u56de\u5bfe\u8c61\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u306f\u4ee5\u4e0b\uff12\u3064\u3060\u3051\u3067\u3059\u3002<\/p>\n<ul>\n<li>Tab \u30ad\u30fc<\/li>\n<li>Shift \u30ad\u30fc<\/li>\n<\/ul>\n<p>\u305d\u3057\u3066\u3001\u3053\u308c\u3089\u306e\u30ad\u30fc\u304c\u62bc\u3055\u308c\u305f\u3068\u304d\u3001\u96e2\u308c\u305f\u3068\u304d\u306b\u305d\u306e\u72b6\u614b\u3092<code>useRef()<\/code>\u306b\u30bb\u30c3\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u203b \u3061\u306a\u307f\u306b\u306a\u305c<code>useRef<\/code>\u306a\u306e\u304b\u3068\u3044\u3046\u3068\u3001\u5373\u52b9\u6027\u304c\u5fc5\u8981\u3060\u304b\u3089\u3067\u3059\u3002\u3056\u3063\u304f\u308a\u8a00\u3046\u3068\u3001<code>useState<\/code>\u3060\u3068\u30ef\u30f3\u30c6\u30f3\u30dd\u9045\u308c\u308b\u306e\u3067\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3093\u3067\u3059\u306d\u3002<\/p>\n<h2>\u30bb\u30ec\u30af\u30b7\u30e7\u30f3\uff08\u30ab\u30fc\u30bd\u30eb\uff09<\/h2>\n<p>\u3053\u306e\u90e8\u5206\u3067\u3001\u300c<strong>\u3069\u306e\u884c\u3092\u30a4\u30f3\u30c7\u30f3\u30c8\u3059\u3079\u304d\u304b\u3069\u3046\u304b\ud83e\udd14<\/strong>\u300d\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30bf\u30a4\u30df\u30f3\u30b0\u3068\u3057\u3066\u306f\u3001\u30de\u30a6\u30b9\u3067\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u306b\u30ab\u30fc\u30bd\u30eb\u304c\u79fb\u52d5\u3057\u305f\u3068\u304d\u3084\u3001\u30c9\u30e9\u30c3\u30b0\u30fb\u30a2\u30f3\u30c9\u30fb\u30c9\u30ed\u30c3\u30d7\u3067\u30c6\u30ad\u30b9\u30c8\u3092\u53cd\u8ee2\u3055\u305b\u305f\u3068\u304d\u3067\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u3053\u306e\u5909\u5316\u3092\u30ad\u30e3\u30c3\u30c1\u3059\u308b\u306e\u304c<code>onSelect<\/code>\u30a4\u30d9\u30f3\u30c8\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30a4\u30d9\u30f3\u30c8\u304c\u5b9f\u884c\u3055\u308c\u305f\u3089\u3001\u300c<strong>\u30a4\u30f3\u30c7\u30f3\u30c8\u3059\u3079\u304d\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5024<\/strong>\u300d\u3092<code>indentIndexes<\/code>\u306b\u30bb\u30c3\u30c8\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\uff08\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5024\u306a\u306e\u3067\u30bc\u30ed\u304b\u3089\u59cb\u307e\u308b\u6570\u5b57\u306b\u306a\u3063\u3066\u307e\u3059\uff09<\/p>\n<p>\u306a\u304a\u3001\u3053\u3053\u304c\u5c11\u3057\u3064\u307e\u3063\u305f\u3068\u3053\u308d\u306a\u306e\u3067\u3059\u304c\u3001\u73fe\u5728\u53cd\u8ee2\u3055\u308c\u3066\u3044\u308b\u30c6\u30ad\u30b9\u30c8\u304c\uff13\u884c\u4ee5\u4e0a\u306e\u5834\u5408\u3001\u30bb\u30ec\u30af\u30b7\u30e7\u30f3\u30c7\u30fc\u30bf\u304b\u3089\u306f\u691c\u77e5\u3067\u304d\u306a\u3044\u884c\u3082\u30a4\u30f3\u30c7\u30f3\u30c8\u306e\u5bfe\u8c61\u306b\u306a\u308b\u305f\u3081\uff08\u3064\u307e\u308a\u3001\uff13\u884c\u9078\u629e\u3057\u305f\u5834\u5408\uff12\u884c\u76ee\u306f\u30bb\u30ec\u30af\u30b7\u30e7\u30f3\u306e\u30c7\u30fc\u30bf\u304b\u3089\u30a4\u30f3\u30c7\u30f3\u30c8\u5bfe\u8c61\u306b\u306a\u308b\u3053\u3068\u3092\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\uff09\u3001\u30eb\u30fc\u30d7\u306e\u4e2d\u3067\u300c\u30a4\u30f3\u30c7\u30f3\u30c8\u3059\u3079\u304d\u30d5\u30e9\u30b0\u300d\u3092\u958b\u59cb\uff06\u7d42\u4e86\u3059\u308b\u3053\u3068\u3067\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f\u3001\u6700\u5f8c\u306b\u3053\u3053\u304c\u4e00\u756a\u96e3\u5100\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u3001<code>&lt;textarea&gt;&lt;\/textarea&gt;<\/code>\u306f\u3001\u4e2d\u8eab\u304c\u5909\u66f4\u3055\u308c\u308b\u3068<strong>\u305d\u308c\u307e\u3067\u306e\u30bb\u30ec\u30af\u30b7\u30e7\u30f3\uff08\u30ab\u30fc\u30bd\u30eb\u3084\u53cd\u8ee2\u60c5\u5831\uff09\u304c\u5931\u308f\u308c\u3066\u3057\u307e\u3044\u307e\u3059<\/strong>\u3002<\/p>\n<p>\u3064\u307e\u308a\u3001\u3053\u306e\u305b\u3044\u3067\u9023\u7d9a\u3067\u30a4\u30f3\u30c7\u30f3\u30c8\u51e6\u7406\u3092\u3057\u3088\u3046\u3068\u3057\u3066\u3082\uff12\u56de\u76ee\u4ee5\u964d\u306f\u5225\u306e\u5834\u6240\u304c\u5bfe\u8c61\u306b\u306a\u3063\u3066\u3057\u307e\u3046\uff08\u6b63\u78ba\u306b\u306f\u6700\u7d42\u884c\u3060\u3051\u304c\u5bfe\u8c61\u306b\u306a\u308b\uff09\u305f\u3081\u3001\u624b\u52d5\u3067\u518d\u5ea6\u30bb\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u306a\u304a\u3055\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3082\u3001<code>value<\/code>\u3092<code>useState()<\/code>\u3067\u7ba1\u7406\u3057\u3066\u3044\u308b\u95a2\u4fc2\u6761\u3001\u305d\u306e\u5909\u5316\u306f<code>useEffect()<\/code>\u3067\u30ad\u30e3\u30c3\u30c1\u3057\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u3001\u300c<strong>\u30a4\u30f3\u30c7\u30f3\u30c8\u4e2d\u304b\u3069\u3046\u304b<\/strong>\u300d\u3092\u30e1\u30bd\u30c3\u30c9\u9593\u3092\u6e21\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b<code>isIndenting<\/code>\u306f<code>useRef<\/code>\u3067\u7ba1\u7406\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\uff08\u3053\u306e\u8fba\u308a\u306f\u3001<code>React<\/code>\u306e\u30af\u30bb\u7684\u306a\u8a71\u306a\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\ud83d\ude02\uff09<\/p>\n<p>\u3068\u306b\u304b\u304f\u3001\u3053\u308c\u3067\u4f5c\u696d\u306f\u7d42\u4e86\u3067\u3059\u2757<br \/>\n\u304a\u75b2\u308c\u69d8\u3067\u3057\u305f\ud83d\udc4d<\/p>\n<h1>\u30c6\u30b9\u30c8\u3057\u3066\u307f\u308b<\/h1>\n<p>\u3067\u306f\u3001\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u2757<\/p>\n<p>\u307e\u305a<code>Vite<\/code>\u3092\u8d77\u52d5\u3057\u3066\u304b\u3089\u30d6\u30e9\u30a6\u30b6\u3067\u300c<strong>https:\/\/******\/indent_textarea<\/strong>\u300d\u3078\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8868\u793a\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11404\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_2.png\" alt=\"\" width=\"455\" height=\"319\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_2.png 455w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_2-300x210.png 300w\" sizes=\"auto, (max-width: 455px) 100vw, 455px\" \/><\/p>\n<\/div>\n<p>\u3067\u306f\u3001\u307e\u305a\u300c<strong>\u30c6\u30b9\u30c8\uff12<\/strong>\u300d\u306e\u884c\u306b\u30ab\u30fc\u30bd\u30eb\u3092\u5f53\u3066\u3066\u307f\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11403\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_3.png\" alt=\"\" width=\"326\" height=\"158\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_3.png 326w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_3-300x145.png 300w\" sizes=\"auto, (max-width: 326px) 100vw, 326px\" \/><\/p>\n<p>\u3067\u306f\u3001\u3053\u306e\u72b6\u614b\u3067<code>Tab\u30ad\u30fc<\/code>\u3092\u62bc\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3069\u3046\u306a\u308b\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11402\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_4.png\" alt=\"\" width=\"351\" height=\"148\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_4.png 351w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_4-300x126.png 300w\" sizes=\"auto, (max-width: 351px) 100vw, 351px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u30c6\u30b9\u30c8\uff12\u306e\u5148\u982d\u306b\u30b9\u30da\u30fc\u30b9\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u8a18\u4e8b\u4e2d\u3067\u3082\u66f8\u304d\u307e\u3057\u305f\u304c\u3001\u30bb\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u624b\u52d5\u3067\u8a2d\u5b9a\u3057\u3066\u3044\u308b\u306e\u3067\u9023\u7d9a\u30a4\u30f3\u30c7\u30f3\u30c8\u306b\u3082\u5bfe\u5fdc\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u4eca\u5ea6\u306f<code>Shift + Tab<\/code>\u3067\u300c<strong>\u9006\u30a4\u30f3\u30c7\u30f3\u30c8<\/strong>\u300d\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3046\u307e\u304f\u3044\u304f\u3067\u3057\u3087\u3046\u304b\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11401\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_5.png\" alt=\"\" width=\"341\" height=\"157\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_5.png 341w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_5-300x138.png 300w\" sizes=\"auto, (max-width: 341px) 100vw, 341px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u5148\u307b\u3069\u3068\u306f\u9006\u306b\u30b9\u30da\u30fc\u30b9\u304c\u524a\u9664\u3055\u308c\u3066\u5143\u306b\u623b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u6210\u529f\u3067\u3059\ud83d\ude04\u2728<\/p>\n<p>\u3067\u306f\u3001\u6700\u5f8c\u306b\u300c<strong>\u8907\u6570\u884c\u306e\u30a4\u30f3\u30c7\u30f3\u30c8<\/strong>\u300d\u3082\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30de\u30a6\u30b9\u3067\u8907\u6570\u884c\u3092\u9078\u629e\u80a2\u3057\u3066\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11406\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_6.png\" alt=\"\" width=\"326\" height=\"158\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_6.png 326w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_6-300x145.png 300w\" sizes=\"auto, (max-width: 326px) 100vw, 326px\" \/><\/p>\n<p>Tab\u30ad\u30fc\u3092\u62bc\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>\u3059\u308b\u3068\u30fb\u30fb\u30fb\u30fb\u30fb\u30fb<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11405\" style=\"border: 3px solid #000;\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_7.png\" alt=\"\" width=\"332\" height=\"163\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_7.png 332w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2023\/01\/laravel_react_indent_textarea_7-300x147.png 300w\" sizes=\"auto, (max-width: 332px) 100vw, 332px\" \/><\/p>\n<p>\u306f\u3044\u2757<br \/>\n\u3061\u3087\u3063\u3068\u308f\u304b\u308a\u306b\u304f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u9078\u629e\u3055\u308c\u3066\u5168\u3066\u306e\u884c\u306b\u30a4\u30f3\u30c7\u30f3\u30c8\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u5168\u3066\u6210\u529f\u3067\u3059\u2728\ud83d\ude04\ud83d\udc4d<\/p>\n<h1>\u30c7\u30e2\u30da\u30fc\u30b8\u3092\u7528\u610f\u3057\u307e\u3057\u305f<\/h1>\n<p>\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u3001\u3067\u3082\u30da\u30fc\u30b8\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002<br \/>\n\u305c\u3072\u5b9f\u969b\u306b\u89e6\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\ud83d\udcdd<a href=\"https:\/\/demo-laravel9x-vite.capilano-fw.com\/indent_textarea\" target=\"_blank\" rel=\"noopener\">\u30c7\u30e2\u30da\u30fc\u30b8<\/a><\/p>\n<h1>\u4f01\u696d\u69d8\u3078\u306e\u3054\u63d0\u6848<\/h1>\n<p>\u4eca\u56de\u306e\u3088\u3046\u306b\u901a\u5e38\u306e\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3067\u306f\u5b9f\u88c5\u3055\u308c\u3066\u3044\u306a\u3044\u6a5f\u80fd\u3067\u3042\u3063\u3066\u3082\u3001\u4f7f\u3044\u3084\u3059\u304f\u5fa1\u793e\u306e\u72ec\u81ea\u5165\u529b\u306b\u5bfe\u5fdc\u3067\u304d\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u8907\u96d1\u306a\u30b3\u30fc\u30c9\u756a\u53f7\u306e\u5165\u529b\u306a\u3069\u3067\u306f\u304a\u529b\u306b\u306a\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u3082\u3057\u3001\u305d\u3046\u3044\u3063\u305f\u3054\u5e0c\u671b\u304c\u3054\u3056\u3044\u307e\u3057\u305f\u3089\u3001\u305c\u3072\u304a\u554f\u3044\u5408\u308f\u305b\u304b\u3089\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002\u304a\u5f85\u3061\u3057\u3066\u304a\u308a\u307e\u3059\u3002\ud83d\ude04\u2728<\/p>\n<h1>\u304a\u308f\u308a\u306b<\/h1>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u300c<strong>Laravel + React<\/strong>\u300d\u3067\u30a4\u30f3\u30c7\u30f3\u30c8\u6a5f\u80fd\u304c\u3042\u308b\u30c6\u30ad\u30b9\u30c8\u30a8\u30ea\u30a2\u3092\u3064\u304f\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u305d\u3046\u8003\u3048\u308b\u3068\u6211\u3005\u304c\u958b\u767a\u3057\u3066\u3044\u308b\u30b3\u30fc\u30c9\u30a8\u30c7\u30a3\u30bf\u3063\u3066\u30db\u30f3\u30c8\u306b\u4fbf\u5229\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u30a4\u30f3\u30c7\u30f3\u30c8\u3069\u3053\u308d\u304b\u5b9a\u7fa9\u3055\u308c\u305f\u5834\u6240\u307e\u3067\u4e00\u77ac\u3067\u79fb\u52d5\u3067\u304d\u305f\u308a\u3002<br \/>\n\u904e\u53bb\u306e\u5049\u4eba\u305f\u3061\u306e\u6210\u679c\u304c\u7a4d\u307f\u4e0a\u304c\u3063\u305f\u7d50\u679c\u3067\u3059\u306d\u3002<\/p>\n<p>\u79c1\u3082\u305d\u306e\u7a4d\u307f\u4e0a\u3052\u306b\u3044\u3064\u304b\u52a0\u308f\u308c\u308b\u3068\u5b09\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u3067\u306f\u301c\u2757<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6071 aligncenter\" src=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_8.png\" alt=\"\" width=\"216\" height=\"320\" srcset=\"https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_8.png 216w, https:\/\/blog.capilano-fw.com\/wp-content\/uploads\/2020\/03\/no_8-203x300.png 203w\" sizes=\"auto, (max-width: 216px) 100vw, 216px\" \/>\u300c\u30b8\u30fc\u30af\u30f3\u30c9\u30fc\u306e<br \/>\n\u6ed1\u308b\u3088\u3046\u306a\u30b9\u30c6\u30c3\u30d7\u3092<br \/>\n\u7df4\u7fd2\u4e2d\u2757\uff08\u52dd\u624b\u306b\uff09\u300d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3055\u3066\u3001\u4ee5\u524d\u304b\u3089\u79c1\u306f\uff08\u307b\u307c\u8da3\u5473\u306a\u306e\u3067\u9045\u3005\u3068\u3057\u3066\u9032\u307f\u307e\u305b\u3093\u304c\ud83d\ude02\uff09\u500b\u4eba\u3067\u958b\u767a\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d3\u30b9\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002 \u305d\u3057\u3066\u3001\u305d\u306e\u4e2d\u3067\u958b\u767a\u3057\u305f\u3068\u3042\u308b\u6a5f\u80fd\u304c\u610f\u5916\u306b\u6c17\u306b\u5165\u3063\u305f &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.capilano-fw.com\/?p=11398\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Laravel + React \u3067\u30a4\u30f3\u30c7\u30f3\u30c8\u6a5f\u80fd\u3092\u3082\u3063\u305f Textarea \u3092\u3064\u304f\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":11409,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[247,3,118,249,248],"tags":[],"class_list":["post-11398","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-inertia-js","category-laravel","category-react-js","category-tailwind-css","category-vite"],"_links":{"self":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11398"}],"version-history":[{"count":5,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11398\/revisions"}],"predecessor-version":[{"id":11411,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/posts\/11398\/revisions\/11411"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=\/wp\/v2\/media\/11409"}],"wp:attachment":[{"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.capilano-fw.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}