Category: React

Recent Post

Using innerHTML in React

How to render a markup string as HTML inside an element in React.

Using Prism syntax highlighter in React

Apply beautiful syntax highlight to your code using Prism in React.

Add comments inside JSX in React

Adding comments inside JSX code require a different approach from HTML or plain JavaScript.

Using the useEffect() hook in React

useEffect() runs code once on initial rendering or specific rerenders.

Using the useState() hook in React.js

Trigger a re-rendering of your app each time the value of a variable changes.

Using the Fetch API in React with functional components

How to use JavaScript's native Fetch API to make HTTP requests in React.