I have a
component that is being passed a style so..
TextFile.js
:
This is a li
In my initial TextFile, I passed style
as an argument, and in the styles
array, just used style
as the second item in the array.
const TextFile = ({ text, style }) => (
{text}
);
Whenever TextFile
gets used, it will apply any styles being given within that component, and/or default to the initial styles it's being given in styles.text
.
Thank you @Li357!