Skip to content

Tag: reactjs

Problems in Grid when using material UI

Hello am trying to build card sets using material UI I’ve sorted data from a javascript object but when I compile the result is not what am looking for here’s the code am using. And the result is this: instead of this: P.S.: the second picture coded manually Answer i’ve tried this one and it…

JS return an array and an object from function

In my react app I have a hook that handles resizing of the screen. The function returns an array of width and height. And i call the hook in my react app like const [width] = useDimensions(). I also want to call the hook like const {isSmScreen} = useDimensions(). Is this possible and how can export it from th…