import React, { useState } from 'react'; import ReactDOM from 'react-dom'; import { Image, Button, Container, Form, FormControl, Navbar, Nav } from 'react-bootstrap'; import { BrowserRouter as Router, Route, Redirect, Switch, Link } from 'react-router-dom'; import userdefault from './user_default.svg' const userName = "정연우"; const userEmail = "dusdn8455@korea.ac.kr"; let userNickname = "가나다라마바사"; function editNickname1() { //수정버튼 누르면 재입력하게 함 // const pic = document.getElementById("profileImg").value // const html = (
별명 :
{/*
*/}
) ReactDOM.render(html, document.getElementById("nickname")) // console.log(document.getElementById("profileImg").value) // // console.log(userdefault) // } function editNickname2() { //수정버튼 누르면 다시 원래대로 돌아가게 함 changeNickname() const html = (
별명 : {userNickname}
) ReactDOM.render(html, document.getElementById("nickname")) } function changeNickname() { //수정버튼 누르면 닉네임 변경해줌 let editedNickname = document.getElementById("editBlock") userNickname = editedNickname.value } function ProfilePage() { const [tohome, setTohome] = useState(false) function goHome() { return (setTohome(true)) } return (
YDK Messenger
{userName} 님 환영합니다
{/*
*/}
{tohome ? : ''}

Profile Page

{userName}님 환영합니다 !

이름 : {userName}
별명 : {userNickname}
이메일 : {userEmail}
) } export default ProfilePage