Questions
Try to answer the following questions to test your knowledge of this chapter:
- In Create React App, what is the filename convention for a CSS module?
- The submit button component in the following code block has its background color set from a constant in a
Color.ts
file. The button background color isn't being set, though, when the component is rendered on the page. What is the problem?import React from 'react'; /** @jsxImportSource @emotion/react */ import { css } from '@emotion/react'; import { primaryAccent1 } from './Colors'; interface Props { children: React.ReactNode } export const SubmitButton = ({ children }: Props) => { return ( <button css={css` background-color: primaryAccent1; `} > ...