Encontré un error y es que al filtar por Furnitures no filtra los items. La API los encuentra por Furniture, sin la S.
Cómo presentar pruebas técnicas con React.js
Prueba técnica para React.js Developers
Setup del proyecto con React y Vite
Issues a resolver para completar la prueba
Solución de la prueba
Code review: LocalStorage en React.js
Code review: Vistas Dinámicas para el SignIn
Code review: React Context y FormData
Code review: Protección de Rutas
Code review: Entregando la Prueba
Próximos pasos
¿Migramos a Next.js?
You don't have access to this class
Keep learning! Join and start boosting your career
Creating a "My Account" view for an application is essential to enable users to manage their personal information easily and efficiently. In this section, we will explore the essential steps to achieve this, from adjusting pre-existing details to implementing data editing functionality.
Before creating new functionality, it is crucial to adjust and update any pre-existing data or text in the application. A notable example is:
The essence of a "My Account" page lies in providing both a view of the user's data and the option to edit it. The steps are as follows:
In this section, it is vital to provide a functional form that allows the user to modify their information efficiently. The form should include:
// Representation of the component for editing user informationfunction renderEditUserInfo() { return ( <form> <label>Name:</label> <input type="text" value={user.name}/> <label>Email:</label> <input type="email" value={user.email}/> <buttononClick={handleEdit}>Edit</button> </form> );}
Beyond basic functionality, small tweaks can improve appearance and usability:
bg-white
, to ensure that items in the navbar are always visible when scrolling.It is always advisable to review and test different approaches for any technical solution, adapting the logic according to specific needs and coding style. And don't forget that these practices and adjustments contribute significantly to improve the user experience in your application. Keep learning and developing!
Contributions 14
Questions 1
Encontré un error y es que al filtar por Furnitures no filtra los items. La API los encuentra por Furniture, sin la S.
Quisiera dejar por acá mi idea de diseño para la página My Account:
.
Cree una vista con un botón de edit para cada campo, cuando este es clickeado, el texto se transforma en un input que permite setear la info:
.
.
.
.
Así quedó mi route “My Account”:
Cuando el state view sea igual a “edit-user-info” agrego un button al lado del título con el cual puedo volver “user-info” por si algún usuario se arrepiente de editar su cuenta.
A la teacher se le fue el sonido
La categoria “Toys” no funciona, al parecer no hay productos en la Fake Store con esa categoria porque no existe.
Mi solucion fue cambiar a Shoes…
Bueno les dejo como quedo el proyecto
Code Github
y el demo
Demo live
Comparto como me quedó la sección de MyAccount (En el navbar coloco el primer nombre del usuario):
yo lo hize de esta manera funciona todo pero al agregar una dirección en el url o recargarlo me sale pagina no encontrada, alguien podría revisar mi codigo y decirme como puedo solucionarlo https://github.com/anonimussapee/shopiLab
Want to see more contributions, questions and answers from the community?