--- myst: html_meta: "description": "Style the React component." "property=og:description": "Style the React component." "property=og:title": "Styling your React component" "keywords": "Plone, trainings, SEO, style, CSS, React, component, exercise, solution" --- (react-styling-label)= # Styling Your Component ## Add style sheet To add a style sheet, we import the CSS file: ```jsx import "./App.css"; ``` ## Exercise Style the component so that the dot on each item is removed and the question is underlined. ````{dropdown} Solution :animate: fade-in-slide-down :icon: question {file}`App.css` ```{code-block} css :linenos: .faq-item { list-style-type: none; } .question { text-decoration: underline; } ``` {file}`App.js` ```{code-block} jsx :emphasize-lines: 1,6-7,18-19 :linenos: true import "./App.css"; function App() { return ( ); } export default App; ``` ```dpatch --- a/src/App.js +++ b/src/App.js @@ -1,8 +1,10 @@ +import "./App.css"; + function App() { return (