I am new to Reactjs.
If the staus is active. I need to update the p tag and need to update in my liClass as .sports-last-second
.sports-changed-status should be changed to .sports-last-second
I have created a if condition but not sure how to insert.
Can you guys tell how to do it.
Providng my code below.
newContentAdded: function () {
var firstTab = 'got-the-value';
if (firstTab == 'got-the-value')
{
<p> got-the-value got-the-value got-the-value got-the-value </p>
}
}
working fiddle [login to view URL]
not working fiddle [login to view URL]
Hello, hope you're having a nice day. I have more than 1 year of experience working in React.js projects with other libraries like redux, react router, thunk middleware and so on. Let me help you to solve your problem.