Emotion css6/12/2023 I think ideally I’d replace with the React. With this method I have to create a component module for each HTML element I want to style. Is there a more ergonomic way to create an escape-hatched react wrapper component that includes the children? Currently the major downside is that I lose the ease of just doing a “css” prop and being able to inline styles if this was Typescript. I wanted to share this in case anyone else wanted to go this route, but also to get feedback in case there is a more succinct way to do this escape hatch. The emitted bs.js file technically still contains escape-hatched JSX code in it, though it still works because my pipeline still processes the JSX in.Some boilerplate in the code to wrap the styled HTML element, and possibly runtime cost?. Start using emotion/css in your project by running npm i emotion/css.
0 Comments
Leave a Reply. |