- This is a basic project structure for a node js project contain a full support for async/await , proper error handling, basic Joi Validation object oriented para-diagram and much more
8 amazing HTML attributes that are so powerful and maybe you haven't heard of them yet
π§΅ππ»
1οΈβ£ Translate
The translate attribute specifies whether the content of an element should be translated or not
You can use it in your brand name so that whenever page translated to other language, your brand name will keep same
2οΈβ£ sandbox
Applies extra restrictions to the content in the frame. The value of the attribute can either be empty to apply all restrictions, or space-separated tokens to lift particular restrictions
useReducer is preferable to useState when you have some complex state.
It accepts three parameter out of which two are mandatory I guess
The first one is reducer function and second one is initial state
useReducer returns two things
- The first one in current state
- The second one is a dispatch function using which you can change your current state by passing action type is dispatch.