How Do I create UNIQUE url for each profile(如何为每个配置文件创建唯一的URL)
转载作者:bug小助手更新时间:2023-10-25 13:27:20284
How do I create a unique URL for Each Profile I have ABSOLUTELY No Idea What to do Here If I want to make a unique URL literally ANYTHING but It should be like localhost:3000/Profile/The-url and it should be totally random it SHOULD not be same I know It is not an error but I have NO Idea What do here. I am using React, and I have a database setup in Firebase it is the Firestore database If you WANT anything any questions this question please please give me details because I have No Idea what to do.
I tries to use useParams()sorry if spelling mistake and I also Tried to search in the web I definitely found some help but I didn't find exactly what do
can you please explain guid or insert ID and can you give a snippet of code, for that?
你能解释一下GUID或插入ID吗?你能给出一段代码吗?
and how to get insert id of the database
以及如何获取数据库的插入ID
guid is 128-bit number used to uniquely identify objects you can create and save when you creating user,I mention primary key of your database entry as insert id
GUID是128位数字,用于唯一标识您在创建USER时可以创建和保存的对象,我将数据库条目的主键称为INSERT ID
Just One thing more like If I want <Link to="/Profile/id" className="ml-1 mt-4 no-underline text-black"> to got to the id so How do I get the id? If got then How Should I store it?
我是一名优秀的程序员,十分优秀!