- create-react-app (v5.0.0)
- TypeScript (v^4.6.3)
- @solana/wallet-adapter
- ESLint (
eslint-config-google
) husky
&lint-staged
&@commitlint
tailwindcss
storybook
- @solana/wallet-adapter
- @solana/wallet-adapter-example
- The Complete Guide to Full Stack Solana Development with React, Anchor, Rust, and Phantom
yarn install
# development
yarn start
# production
yarn build
- Currently some type related errors are suppressed by
@ts-expect-error
. This comment should be removed by typing them correctly.- Keep an eye out for Solana web3 Program constructor is expecting a json as one of params.
- Consider You'll notice that when you refresh, you lose the state of the program. This is because we are dynamically generating the base account when the program loads. If you wanted to read and interact with the program data across various clients, you would need to create and store the Keypair somewhere in your project. I've put together a gist of a naive approach of how this might look.
- Handle the console warning
Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot
.