loading...

Discussion on: State usage in Functional and Class Components in React

Collapse
kosich profile image
Kostia Palchyk

Hi! Nice article!

Small tip:
to add syntax highlight — just add js or jsx to your code snippets opening backticks.
e.g. '''jsx (with backticks intstead of ')

--

Also, you might not need a state! Check out my experiment with JSX and RxJS:

<div>{
  axios(url).then(r => r.data)
}</div>
Collapse
chilupa profile image
Pavan Chilukuri Author

Thank you for the suggestion, I've edited my post. 👍