React dropdown menu component [closed] - reactjs

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I have bumped into this article the other day but struggled to make a usable demo on codepen. I want to use this component to make two-level dropdown menu button but I keep getting syntax error at line 5.
Here is the component. Note that I am just starting my journey with React.js

You are possibly getting this error -
'const' can only be used in a .ts file.
That is because const is inside the class.
Move it outside and it will work fine.

Related

Changing className after a component has rendered [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 days ago.
Improve this question
I'm using TypeScript, React in VS.
Trying to change a component's className to play with style and hide stuff. I don't want all script in one file to keep things clean.
This is the link to CodeSandbox https://codesandbox.io/s/quizzical-hill-6elcos

How to make a Splide js Gallery carousel in React js? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 days ago.
Improve this question
How to make a Splide js gallery carousel in React js or Next js? there's not much guidance in the official documentation
Please give me a sample code or any resource on the internet if you know, i've done doing a lot research on the internet
You can use Swiper.js , It has good documentation and used frequently between react developers.
https://swiperjs.com/

How can I showcase the code snippets in my react app? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 months ago.
Improve this question
I'm trying to make a code showcase web app in react. And I wanted to show case the code snippets similar shown below !!
react-code-blocks package will do the job pretty well.

Displaying a Video in REACT.js that replays [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I am making a clone of a website using React. I am fairly new to React js and am trying to add a video that replays on its own. If anyone can at least point me in the right direction of documentation, I would appreciate it.
I do not want the video to take up the whole screen. I believe the video should be its own component, i think.
The website I am cloning is halfsumo.com see the video below the nav bar section.
Attribute loop on <video/> element should do the job.

Why is my reactjs project loading endlessly? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
In my project i use "tailwindcss". I don't have any error but my project don't load. Just website loading and it's all. I give my github repo instead code, beacause i don't know, where problem. I hope, i can write links
Project - https://github.com/kirilchistov/react-movies
Problem:
there is a loop in you header file. for the default path <popular/> is called which calls <header/> which again calls <popular/>. you should do all the route management in the app.jsx file.

Resources