GithubHelp home page GithubHelp logo

Comments (3)

rexxars avatar rexxars commented on June 24, 2024 6

Hi Martin!

It should be block.normal, eg:

const components = {
  block: {
    normal: ({ children }) => <Text>{children}</Text>,
  }
};

The block keys match the style property of a block. However, if the block is a list item, they will use the listItem.<listType> to render.

from react-portabletext.

davincios avatar davincios commented on June 24, 2024 3

@rexxars I think it would help a lot to make the documentation a bit more clear in the github README file because I am sure it is a great library but just difficult to use it with the different elements. I have spend a lot of time figuring out how it works, and browsing closed pull requests.

A lot more people would use it if the documentation was more clear.

from react-portabletext.

rexxars avatar rexxars commented on June 24, 2024 1

Thanks for the feedback, @davincios - would be happy to see a pull request improving the readme if you have time!

from react-portabletext.

Related Issues (20)

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.