I\'ve built a ReactJS component library that I use for multiple projects installed via an NPM package using a sim link. I want to use the context API to pass data from a parent
should your code of consumer be
{value => /* render something based on the context value */}
as stated from the official react doc : https://zh-hant.reactjs.org/docs/context.html
when you define
you can use it like