A curated list of browser globals that commonly cause confusion and are not recommended to use without an explicit window qualifier
Overall
score
97%
Build a reusable user profile card component with locally scoped styles to avoid style conflicts.
Create a user profile card component that displays user information with the following specifications:
The component should accept these props:
name (string): The user's full namerole (string): The user's job title or roleavatarUrl (string): URL to the user's profile imagestatus (string): User status, either "active", "away", or "offline"The component must use locally scoped styles to prevent CSS class name conflicts with other components. The styles should include:
The styles must be scoped to this component only and not affect other parts of the application.
The component should be implemented in a JavaScript file with an accompanying CSS Module file for scoped styles.
@generates @generates
Provides the component framework.
Provides the build system and CSS Modules support.
Install with Tessl CLI
npx tessl i tessl/npm-confusing-browser-globalsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10