Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
10
Comments
1

Moulaye-dagnon

@Moulaye-dagnon220 points

I’m a mysterious individual who has yet to fill out my bio. One thing’s for certain: I love writing front-end code!

Latest solutions

  • coffeeroasters-subscription-site with react

    #react#react-router#redux#vite

    Moulaye-dagnon•220
    Submitted 10 months ago

    0 comments
  • interactive-comments-section with react

    #react

    Moulaye-dagnon•220
    Submitted about 1 year ago

    I have a few questions: I couldn't put my modalDelete, I had some difficulty with it, how to do it. readme.md says that the top level comment should be ordered by their scores: how did you do it? I would like to have feedback on how to improve and manage my code, I think this is my weak point? How do you think about the use of hooks (useReducer and userContext) from the start of the project? finally, I want to make it a full stack project using node.js (express.js), if you have any advice for me THANKS


    0 comments
  • Officelite coming soon site using React .js

    #react#react-router

    Moulaye-dagnon•220
    Submitted over 1 year ago

    0 comments
  • github-user-search-app-with-react.js

    #react

    Moulaye-dagnon•220
    Submitted over 1 year ago

    0 comments
  • newsletter-sign-up-with-success-message With react.js

    #react

    Moulaye-dagnon•220
    Submitted over 1 year ago

    1 comment
  • Time tracking dashboard using react

    #react

    Moulaye-dagnon•220
    Submitted over 1 year ago

    0 comments
View more solutions

Latest comments

  • vuson1709•120
    @vuson1709
    Submitted over 1 year ago

    Using React to complete challenge

    #react
    2
    Moulaye-dagnon•220
    @Moulaye-dagnon
    Posted over 1 year ago

    You can use the hooks for this :

         const [WidthScreem, setWidthSreem] = useState(window.innerWidth)
    useEffect(()=>{
    	const handleResize = ()=> setWidthSreem(window.innerWidth)
    	window.addEventListener('resize', handleResize)
    	return ()=> window.removeEventListener('resize', handleResize)
    },[])  
    

    A litle explain :

    const [WidthScreem, setWidthSreem] = useState(window.innerWidth) Here we used the state hook and initialized it with the screen size After , you can use an Event on the window so that every time the screen size changes we call seTsetWidthSreem() again . Here we can say that useEffect allows you to automatically refresh the page

Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub