convert library, except for the react parts.