[simple functions are used in the application like ternary operator components, class, statless functions and many more.]
1. CONDITION ? TRUE : FALSE;
if condition is TRUE then condition first will be executed else condition last will be executed.
2. news.filter((item) => item.indexOf(condition) > -1)
then one of the major function is filter is used to filter the condition.
3. map(item => <li>{item}</li>)
const styles = {
logo: {
fontSize: '20px',
backgroundColor: "#333"
}
}
IN JSX you can use this.
return (
<div>
<div style = {styles.logo}>Logo</div>
</div>
)
[This is a Very simple Application I have created so far.]