Created
January 27, 2017 16:06
-
-
Save chip/ef513f1d413e81ae84f589c3f9a45124 to your computer and use it in GitHub Desktop.
React component using styled-components
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Uncaught TypeError: Cannot read property 'indexOf' of undefined | |
| at index.js (modules.js?hash=87d9283…:91699) | |
| at fileEvaluate (modules-runtime.js?hash=637cb12…:191) | |
| at require (modules-runtime.js?hash=637cb12…:116) | |
| at meteorInstall.node_modules.styled-components.lib.vendor.postcss.css-syntax-error.js (modules.js?hash=87d9283…:88935) | |
| at fileEvaluate (modules-runtime.js?hash=637cb12…:191) | |
| at require (modules-runtime.js?hash=637cb12…:116) | |
| at meteorInstall.node_modules.styled-components.lib.vendor.postcss.node.js (modules.js?hash=87d9283…:88246) | |
| at fileEvaluate (modules-runtime.js?hash=637cb12…:191) | |
| at require (modules-runtime.js?hash=637cb12…:116) | |
| at meteorInstall.node_modules.styled-components.lib.vendor.postcss.declaration.js (modules.js?hash=87d9283…:88081) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import { Row, Col } from 'react-bootstrap'; | |
| import styled from 'styled-components'; | |
| const RedRow = styled(Row)` | |
| color: red; | |
| `; | |
| const Status = () => ( | |
| <div> | |
| <RedRow> | |
| <Col> | |
| Red | |
| </Col> | |
| </RedRow> | |
| </div> | |
| ); | |
| export default Status; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment