Skip to content

Use classes in React code #5

Description

@gigabite-pro

I was trying to work with the component and since it doesn't provide me a lot of control over the underlying elements, I'm trying to access the elements from the DOM and then manipulate them. One issue that I faced was that there is no class/id or any unique-identifier in any of the elements. When I tried to access the events, I had to do something like this:
const calendarEvents = calendarRef.current.children[0].children[1].children[0].children[0].children[1].children[1].children[0].children;

Please put classNames and ids for each component so that it can be manipulated from the DOM.

Great library btw!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions