목록2025/03 (26)
코드네임 :
문자열 보간법 /(aaa)

Tuist란?? Xcode 프로젝트 파일을 코드 기반으로 관리할 수 있도록 도와주는 도구걍.. 큰 프로젝트 할때 쓰면 좋은 거 인듯 미제를 깔고 튜이스트를 깔자https://github.com/jdx/mise GitHub - jdx/mise: dev tools, env vars, task runnerdev tools, env vars, task runner. Contribute to jdx/mise development by creating an account on GitHub.github.com curl https://mise.run | sh~/.local/bin/mise --version난 이거 중간에 해야 했음➜ ~ git:(main) ✗ echo 'export PATH="$HOME/.local/..

프리뷰에 띄우는 방식흠 근데 개인적으로 요즘 핸드폰 아이폰 다 그 크기? 비슷하지 않나 14인가 15에서 상단바 바뀐거만 제외하면 Text .font() // 텍스트의 글꼴 크기.foregroundStyle() // 텍스트의 색상.underline() //텍스트 밑줄 추가.strikethrough() // 텍스트에 취소선 추가.lineLimit() // 텍스트가 너무 길 때 몇 줄까지만 보여줄지 설정.kerning() // 자간.lineSpacing() // 행간.padding() // 패딩 - 텍스트 주위 여백.overlay() // 텍스트뷰 위에 추가 레이어를 덮어씌움.dynamicTypeSize() // 사용자 설정에 맞춰 텍스트 크기를 유동적으로 조정 Image .resizable() // ..
import { useState, useEffect } from "react";function App() { const [loading, setLoading] = useState(true); const [coins, setCoins] = useState([]); useEffect(() => { fetch("https://api.coinpaprika.com/v1/tickers") .then((response) => response.json()) .then((json) => { setCoins(json); setLoading(false); }); }, []); return ( div> h1>The Coins! {loading ? "" : `(${coins.length})`}h1> {loading ? stro..
import { useState, useEffect } from "react";function App() { const [toDo, setToDo] = useState(""); const [toDos, setToDos] = useState([]); const onChange = (event) => setToDo(event.target.value); const onSubmit = (event) => { event.preventDefault(); if (toDo === "") { return; } // 중요!!!! state를 절대 직접 수정하지 않고, 함수로 수정 // 그러니 toDo ="";는 절대 안되고 아래처럼 setToDos((currentArray) => [toDo, ...currentArray]..
그뭐니 nodejs로 지금 뭐 실행중이던데 index.jsimport React from "react";import ReactDOM from "react-dom/client";import App from "./App";const root = ReactDOM.createRoot(document.getElementById('root'));root.render( React.StrictMode> App /> React.StrictMode>); App.jsimport { useState, useEffect } from "react";function App() { const [counter, setValue] = useState(0); const [keyword, setKeyword] = useState("")..

흠 중간에 ?? 한 부분있어서 지피티한테 무러봣긔바로 이해함 굿 DOCTYPE html>html lang="en"> head> meta charset="UTF-8" /> meta name="viewport" content="width=device-width, initial-scale=1.0" /> title>Documenttitle> head> body> div id="root">div> body> script src="https://unpkg.com/react@17.0.2/umd/react.development.js">script> script src="https://unpkg.com/react@17.0.2/umd/react.development.js">script> script src="http..
보호되어 있는 글입니다.