Chat with v0. Generate UI with simple text prompts. Copy, paste, ship.
ããã«ã¡ã¯ã ã¡ãã£ã¢ãµã¼ãã¹éçºé¨Webã¢ããªã±ã¼ã·ã§ã³éçºèª²ã§ããã³ãã¨ã³ãã¨ã³ã¸ãã¢ããã¦ããnerikeshiã§ãã主ã«TypeScriptã§Reactã¢ããªã±ã¼ã·ã§ã³ã®éçºããã¦ãã¾ãã æ¬è¨äºã§ã¯ãã³ã³ããã§ç¨¼åããã¦ããNext.jsã¢ããªã±ã¼ã·ã§ã³ã®Vercelã¸ã®ç§»è¡ã¨ãããã«ä»éãã¦è¡ã£ãISRå°å ¥æã«èµ·ãããããã©ããã«ã¤ãã¦ã話ããã¾ãã æ¬è¨äºã¯åãWebã¢ããªã±ã¼ã·ã§ã³éçºèª²ã§ããã¯ã¨ã³ããæ å½ãã¦ããããµã®ã³(é«ï¨)ã¨ã®å ±åå·çè¨äºã§ãã ä¸è¿ ãã©ã¹ã¨ã¯ 以åã®ä¸è¿ ãã©ã¹ ããã³ãã¨ã³ãã«é¢ããã¤ã³ãã©æ§æã®è¦ç´ã Vercelã¸ç§»è¨ããã«ããã£ã¦ééããè¿·ãã©ããããããã©ãã DNSã¬ã³ã¼ãã®è¨å® SSL証ææ¸ ISRãã¼ã¸ã404ã«ãªã£ãã¨ãã®revalidateã®æåã«ã¤ã㦠ããã¯ã¨ã³ããããã³ãã¨ã³ãããã®ã¢ã¯ã»ã¹ãIPã¢ãã¬ã¹ã§å¶éã§ããªã ä¸è¿
import useSWR from 'swr' function Profile() { const { data, error, isLoading } = useSWR('/api/user', fetcher) if (error) return <div>failed to load</div> if (isLoading) return <div>loading...</div> return <div>hello {data.name}!</div> } In this example, the useSWR hook accepts a key string and a fetcher function. key is a unique identifier of the data (normally the API URL) and will be passed to f
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}