MCPcopy Create free account
hub / github.com/dabbott/react-native-express / Card

Function Card

examples/files/react/inlineStyles.js:6–19  ·  view source on GitHub ↗
({ color, children })

Source from the content-addressed store, hash-verified

4const randomColor = () => '#' + Math.random().toString(16).substr(-6)
5
6const Card = ({ color, children }) => {
7 return (
8 <div
9 style={{
10 padding: '20px',
11 textAlign: 'center',
12 color: 'white',
13 backgroundColor: color,
14 }}
15 >
16 {children}
17 </div>
18 )
19}
20
21const App = () => {
22 const [color, setColor] = useState('skyblue')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected