DEV Community

Discussion on: React Higher-Order Components in TypeScript made simple

Collapse
 
healthycola profile image
healthycola

If you need to interact with props or states from here, the only way to do it is to specify options as functions, that take the props or states as arguments.

Trying to get this working, but having issues with it. Any suggestions? Great article btw.

Collapse
 
danhomola profile image
Dan Homola

What kind of issues are you having?

The idea is that you pass something like this to the config:

const config = {
  someSetting: props => { /* get some value or something */ }
}