Git Product home page Git Product logo

Comments (4)

JonathanMH avatar JonathanMH commented on August 24, 2024

@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.

ionofzion avatar ionofzion commented on August 24, 2024

@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.

Mulli avatar Mulli commented on August 24, 2024

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.

ionofzion avatar ionofzion commented on August 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.