How to access to Phantom wallet data? [closed] - reactjs

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 months ago.
Improve this question
I'am new in Phantom/ Solana universe and I want to create my first web app using Phantom Wallet into my React app. I used the Phantom app documentation to connect to my wallet, that's work.
But now, I want to show in my app some data about the connected wallet like NFT possessed, solana balance and so on.
Does anyone know what should I do ?
Thank you in advance.

You can have my code for this. And will work fine.
CodeSandbox
But remember install #solana/web3.js v1.30.2
If you gone to higher version some extra dependencies and webpack config is needed.

Related

how to use Nextjs in cra [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I good learn react. But I know about nextjs I want to use this framework with create-react-app. How can I do? or do have solve problems SSR without nextjs? Where I find good simple good example or tutorial?
If you already have your app with CRA (create-react-app) then you will probably need to migrate into a new next app using npx create-next-app.
This will create a next configuration and then you will need to migrate each component to use this new structure, this is almost straight forward here you have documentation:
https://nextjs.org/docs/migrating/from-create-react-app

Is there a way to save offline using firebase react native? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I just want to ask , I will build app using react native but the app has a feature which allow the user to add and save his recipe offline is that possible using firebase please I want anyone to answer me !
if yes please tell me how
If you use the Firestore database the offline capabiliteis are by default enabled.
Offline persistence is supported only in Android, iOS, and web apps.
You can read more about it here.
That means you work with the database as of it is a local one. It will sync automaticaly with the server when there is a connection. There are no futher instructions required. Just use it according to the documentation. The offline is by default integrated into it.

How to create an Admin page for a website developed in React + Node? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to create an Admin page in order to manage users, groups, passwords and to publish content in a website. That website is made using React.
What is the right way to make it? Using a library for React that provides such Admin?
My workmate told me he uses Material UI, but I don't see how that library could be used for that purpose.
Material UI is used only for styling stuff, not for actual logic. If you have a REST backend, take a look at admin on rest project.
What is your backed written in?

is code sharing between react and react native possible? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I want to know whether, is it possible to create an app which works both on web and mobile app with same code. I think it is possible in angular 2 ionic. But, I'm not sure about react. Can anyone help me on this?
Thanks in advance!
Yes, it is possible, with help with react-web or react-native-web. But I wouldn't recommend these.

Create a real chat application between 2 clients or more [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a web application that I have created with angularJS/Symfony2 and a mobile app with(ionic) I want to create a real chat application between this 2 clients.I thought to use nodeJS and websockets??I can have many clients conncted from their mobile
I have read many articles about firebase for angularJS and redis,but I don't know from where I will start
have you please any idea how can I do that
thanks a lot
The simplest way to start is check basic chat solution on NodeJs http://socket.io/get-started/chat/
Also as alternative you can use Rachet(WebSockets for PHP) http://socketo.me/ to get more closer integration with Symfony2
You can definetely use node and socket.io.
Start here:
http://socket.io/get-started/chat/
To integrate it with angular, you can use this module:
https://github.com/btford/angular-socket-io

Resources