Comments (4)
@congruentsquare I believe that's because the API call returns bool(true)
instead of the value that's inserted.
If you change
(json) => this.setState({ settings: json.wpreactivate }),
to
(json) => console.log(json),
it should be clear (and work on top of that)
from wp-reactivate.
@congruentsquare I'm not sure I understand the problem. When you update /containers/Admin.jsx
and build, the changes do not reflect in the settings panel?
I just tested again and all appears to be working. After you run yarn build
or npm run build
, any elements you've added or edited in Admin.jsx
should be visible on the settings page.
from wp-reactivate.
It works for me.
Set "Hello World" and its there even after visiting other admin panel entries.
Checked more and its under /wp-json/wp-reactivate/v1/settings
Hope that helps a bit
from wp-reactivate.
We've just published the first part of our WP Reactivate tutorial series here - https://gopangolin.com/building-wordpress-plugin-with-react-part-1/.
Closing this issue.
from wp-reactivate.
Related Issues (10)
- Accessing the WP Reactivate settings page throws error HOT 1
- Create final build HOT 1
- Heavy prod .js file HOT 1
- React widget not updating with code changes
- Typescript Support
- How to create shortcode for menu item with wp_nav_menu?
- routing HOT 3
- Moving Plugin From Admin Settings to its own Admin Menu Item HOT 1
- Cannot load css file from an external module. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-reactivate.