1jsximport React from 'react'import styled from 'styled-components'import { AiOutlineLike } from 'react-icons/ai'
2const LikeButton = () => { const [value, setValue] = React.useState(0) return ( <Wrapper> <div> <button onClick={() => setValue(value + 1)}> <AiOutlineLike /> </button> <p> Liked the post? <br /> Click thumbs up few times </p> </div> <span>+{value}</span> </Wrapper> )}
1jsximport React from 'react'import styled from 'styled-components'import { AiOutlineLike } from 'react-icons/ai'
2const LikeButton = () => { const [value, setValue] = React.useState(0) return ( <Wrapper> <div> <button onClick={() => setValue(value + 1)}> <AiOutlineLike /> </button> <p> Liked the post? <br /> Click thumbs up few times </p> </div> <span>+{value}</span> </Wrapper> )}