### Which syntax allows you to apply a style to a component?
Code A:
<MyComponent style="background-color: red">
Code B:
<MyComponent style={{"background-color": "red"}}>
Code C:
<MyComponent style={{backgroundColor: "red"}}>
Code D:
import {StyleSheet} from "react-native";
const styles = StyleSheet.create({
backgroundColor: "red"
})
<MyComponent style={styles}>