To use chakra with react, you will first need to install the appropriate libraries:
After installing Chakra UI, you need to set up the ChakraProvider at the root of your application. This will generally be in index.js , it should look something like this:
Then here is an example of using Chakra UI components (ButtonBox) in your  App.js
Version 2 of Chakra UI is only compatible with React 18. If you are still needing to use React 17 or earlier, please use version 1 of Chakra UI.