react-starter-kit icon indicating copy to clipboard operation
react-starter-kit copied to clipboard

how i can use setMeta ?

Open farhad-arjmand opened this issue 10 years ago • 2 comments

when i use setMeta : TypeError: context.setMeta is not a function

farhad-arjmand avatar May 10 '16 08:05 farhad-arjmand

you need to set the contextTypes in your component, i.e.

(functionName)..contextTypes = { setTitle: PropTypes.func.isRequired, setMeta: PropTypes.func.isRequired };

Once you do that, you can setMeta() to your hearts content

AlexCrookes avatar Jul 19 '16 23:07 AlexCrookes

@farhad-arjmand thank you very much for crating this issue! Unfortunately, we have close it due to inactivity. Feel free to re-open it or join our Discord channel for discussion.

NOTE: The main branch has been updated with React Starter Kit v2, using JAM-style architecture.

ulani avatar May 27 '21 20:05 ulani