Home β†’ News β†’ Creating truly universal React component systems – πŸ’… styled-components – Medium

Creating truly universal React component systems – πŸ’… styled-components – Medium



medium bookmark / Raindrop.io | Max Stoiber Technical cofounder of Spectrum.chat, creator of react-boilerplate, co-creator of πŸ’… styled-components and maintainer of KeystoneJS and micro-analytics. Jun 19 styled-components/primitives Creating truly universal React components that can be rendered on the web and in React Native is hard. There are different primitives:<View> vs. <div>,<Text> vs. <h1>/<p> etc, and the styling also works entirely differently: ReactNative has it’s own CSS-like styling solution with JS objects, StyleSheet. Until now your only option was to use React Native platform extensions to target specific platforms with your