Coder Social home page Coder Social logo

Updates for the new REACT? about react-json HOT 9 OPEN

alex-newray avatar alex-newray commented on August 22, 2024
Updates for the new REACT?

from react-json.

Comments (9)

arqex avatar arqex commented on August 22, 2024

Hi Alex,

It's been a while that I don't use react-json in my dialy work. I suppose that the errors comes from the CSS and the absence of the inner tags.

Do you dare to make a PR to make it work again?

Cheers,
Javi

from react-json.

hilkeheremans avatar hilkeheremans commented on August 22, 2024

I made a quick fork and fixed a few things. There were a few errors related to findDomNode() being deprecated as of react v15.

Unfortunately, I am not familiar with this library back when 0.13 was still floating around, so I am not sure if I have full functionality restored. As for tests, it's not clear to me on how to run those as no documentation/setup instructions are included :-)

@alex-newray @arqex Could you check out this fork and see what's missing?

One thing I noticed is that the css does not get loaded automagically, but perhaps that is by design. Since I'm using Webpack for the project I am using this in, this is not a biggie as it's easily solved with a quick css-loader.

from react-json.

alex-newray avatar alex-newray commented on August 22, 2024

@hilkeheremans Yes, it works. Only need to change depending on new react
@arqex @hilkeheremans I would like to see the updated version in npm
Thank you

from react-json.

mwq27 avatar mwq27 commented on August 22, 2024

@hilkeheremans can you make a PR for your changes? It looks like they are working.

from react-json.

hilkeheremans avatar hilkeheremans commented on August 22, 2024

#8

from react-json.

mwq27 avatar mwq27 commented on August 22, 2024

Thanks @hilkeheremans .

Have you tried this component while using Redux? I can't get the onChange event to fire when I'm using redux.

from react-json.

arqex avatar arqex commented on August 22, 2024

Nice to see movement in this repo. The project where I use react-json is not in react 15, that's why this issue was a bit forgotten.

I'll try to merge @hilkeheremans PR this evening ;)

Thanks

from react-json.

arqex avatar arqex commented on August 22, 2024

Merged thanks.

I have a question. How do you use this library? I created it in the early days of react because handling deep changes in deep trees of data was so challenging, and what's a better example than a JSON editor for that?

After that, I created freezer.js to manage those changes, and redux became very famous, and I started using react-json as a quick way of creating forms and editing generic data, but all that logic about extending/collapsing nodes is not useful to me any longer.

I think this library could be revamped to work really well as a form editor, but I don't know if there is people who likes its json editor features, or if there will be devs interested in another (but the simplest) form generator.

from react-json.

searler avatar searler commented on August 22, 2024

I vote for providing only the form generator functionality.
That has been very useful but I have not found any use case for the JSON editor.

from react-json.

Related Issues (9)

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.