지금 스프링부트 프로젝트 진행하면서 백엔드는 얼추 정리된거같아서 프론트작업을 하고있는데 이왕 프론트 하는거 html, css, javascript말고 새로운 React로 하는게 재밌을거같아서 시작하게 됐습니다.

또 그냥 React보다 bootstrap과 합치면 재밌을거같아서 검색해봤는데 두개가 다르더라구요.

https://stackoverflow.com/questions/56061590/what-is-difference-between-reactstrap-and-react-bootstrap

 

What is difference between reactstrap and react-bootstrap?

I found two different bootstraps for reactjs npm install --save reactstrap react react-dom npm install react-bootstrap bootstrap What is the basic and main difference between both?

stackoverflow.com

답변을 보면 reactstrap은 상태값과 class를사용하고 react-bootstrap은 function과 hooks를 사용한다고합니다..

아직 React를 잘 몰라서 뭐가 뭔지 잘은 모르지만 저는 react-bootstrap을 쓰기로 했습니다. 그냥??

https://react-bootstrap.github.io/

 

React-Bootstrap

The most popular front-end framework, rebuilt for React.

react-bootstrap.github.io

React-Bootstrap 공식문서 입니다.
오른쪽 위를 보시면 버전이 있는데 해당 버전에 맞게 문서를 보고사용하시면 됩니다..

다른버전 문법을 쓰다가 안돼서 진땀뺏습니다 ㅠㅠ 저같이 실수하지 마세용

 

https://reactstrap.github.io/

 

reactstrap - React Bootstrap 4 components

Installation NPM Install reactstrap and peer dependencies via NPM npm install --save reactstrap react react-dom Import the components you need Danger! import React from 'react'; import { Button } from 'reactstrap'; export default (props) => { return ( Dang

reactstrap.github.io

이건 reactstrap입니다.

'프론트엔드 > React' 카테고리의 다른 글

mac, gradle, react-bootstrap 연동  (0) 2021.06.30
[React] React-Bootstrap 사용하기  (0) 2021.06.23
[React] useState?  (1) 2021.06.18
[React] 데이터바인딩(Data Binding)  (0) 2021.06.17
React 시작하기  (0) 2021.06.17

+ Recent posts