-
-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Labels
💪 phase/solvedPost is donePost is done🗄 area/interfaceThis affects the public interfaceThis affects the public interface🦋 type/enhancementThis is great to haveThis is great to have🧒 semver/minorThis is backwards-compatible changeThis is backwards-compatible change
Description
Subject of the feature
I want to access HAST nodes from React components to use position or custom attributes of nodes when rendering.
Problem
For now, there is no way to access because rehype-react is tightly bound to hast-to-hyperscript, which consumes Node.
Expected behavior
A React component should be able to access its Node info somehow.
Alternatives
Passing a node instance via node prop.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
💪 phase/solvedPost is donePost is done🗄 area/interfaceThis affects the public interfaceThis affects the public interface🦋 type/enhancementThis is great to haveThis is great to have🧒 semver/minorThis is backwards-compatible changeThis is backwards-compatible change