Lokesh, I'm implementing your template into an existing React app but the componentDidMount assignment of a value to this.state.nativeModule doesn't stick:
When I examine the state value of nativeModule right after the import setState it has an object value, however when accessing the state value of nativeModule in the function that accesses the state value of nativeModule it's null.
I am a Problem Solver, Fast and perpetual learner, Software engineer. I love programming, designing, and of course the place where both of these meet; problem solving.
Hello Charles, my sincere apologies for replying to this quite late.
From looking at your code, it looks you need to update the path relative to the file in which you are importing.
Since you trying to import the build in BudgetTable.js, please update the import path in componentDidMount to reflect the relative path to the build file from the directory of BudgetTable.js.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Lokesh, I'm implementing your template into an existing React app but the componentDidMount assignment of a value to this.state.nativeModule doesn't stick:
When I examine the state value of nativeModule right after the import setState it has an object value, however when accessing the state value of nativeModule in the function that accesses the state value of nativeModule it's null.
config-override has the following assignments:
The file that contains this code located at: ./src/BudgetManager/ClientBudget/BudgetTable.js
Any ideas? Could it be because the import isn't happening in the App.js file?
Thanks.
Hello Charles, my sincere apologies for replying to this quite late.
From looking at your code, it looks you need to update the path relative to the file in which you are importing.
Since you trying to import the build in BudgetTable.js, please update the import path in componentDidMount to reflect the relative path to the build file from the directory of BudgetTable.js.