javascript/React2 [React] A component is changing a controlled input to be uncontrolled 에러 A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from undefined to a defined value , which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component : input 태그의 value가 undefined 값이 들어갈 수도 있으면 발생하는 에러 uncontrolled input이였다가 controlled input으로 바뀌면서 발생 렌더링 후에 값이 들어와 값이 바뀌면서 발생한 에러 : .. 2023. 4. 8. [Spring Boot + React] URLSearchParams , useLocation 사용법 select * from test where title = #{keyword} const [title , setTitle] = useState[[]]; const [keyword , setKeyword] = useState[""];const location = useLocation();const test = () => { const param = new URLSearchParams(location.search); const searchKeyword = param.get('keyword') || keyword; const testUrl = `http://localhost:8081/test.do?keyword=${searchKeyword}`; fetch(testUr.. 2023. 4. 8. 이전 1 다음 LIST